diff --git a/pkg/api/api.go b/pkg/api/api.go index d0c4a95..2ceaea8 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -2,8 +2,9 @@ package api import ( "fmt" - log "github.com/sirupsen/logrus" "net/http" + + log "github.com/sirupsen/logrus" ) const tokenMissingMsg = "api token is empty or has not been set. exiting" @@ -28,8 +29,6 @@ func (api *API) RequireToken(fn http.HandlerFunc) http.HandlerFunc { auth := r.Header.Get("Authorization") want := fmt.Sprintf("Bearer %s", api.Token) if auth != want { - log.Tracef("Invalid Authorization header \"%s\"", auth) - log.Tracef("Expected Authorization header to be \"%s\"", want) w.WriteHeader(http.StatusUnauthorized) return }