diff --git a/http_utility.go b/http_utility.go index 05dd2ee..ca90b63 100644 --- a/http_utility.go +++ b/http_utility.go @@ -3,7 +3,6 @@ package webutility import ( "net/http" "encoding/json" - "fmt" ) const templateHttpErr500_EN = "An internal server error has occurred." @@ -78,7 +77,6 @@ func WrapHandler(handlerFunc http.HandlerFunc, authorizedRoles []string) http.Ha token := req.Header.Get("Authorization") claims, err := ParseAPIToken(token); if err != nil || !roleAuthorized(authorizedRoles, claims) { - fmt.Printf("not authorized %s %s...\n", claims.Username, claims.Role) UnauthorizedResponse(w, req) return }