Commit 9033286899d1bcad006a5156db1c518558a3a4d1
1 parent
2529f43f82
Exists in
master
and in
1 other branch
removed printf
Showing
1 changed file
with
0 additions
and
2 deletions
Show diff stats
http_utility.go
... | ... | @@ -3,7 +3,6 @@ package webutility |
3 | 3 | import ( |
4 | 4 | "net/http" |
5 | 5 | "encoding/json" |
6 | - "fmt" | |
7 | 6 | ) |
8 | 7 | |
9 | 8 | const templateHttpErr500_EN = "An internal server error has occurred." |
... | ... | @@ -78,7 +77,6 @@ func WrapHandler(handlerFunc http.HandlerFunc, authorizedRoles []string) http.Ha |
78 | 77 | token := req.Header.Get("Authorization") |
79 | 78 | claims, err := ParseAPIToken(token); |
80 | 79 | if err != nil || !roleAuthorized(authorizedRoles, claims) { |
81 | - fmt.Printf("not authorized %s %s...\n", claims.Username, claims.Role) | |
82 | 80 | UnauthorizedResponse(w, req) |
83 | 81 | return |
84 | 82 | } | ... | ... |