Log API requests and responses at Debug level

This commit is contained in:
Deluan
2020-04-05 23:57:04 -04:00
parent 59707b3a8f
commit a17a98a75f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ func checkRequiredParameters(next http.Handler) http.Handler {
ctx = context.WithValue(ctx, "username", user)
ctx = context.WithValue(ctx, "client", client)
ctx = context.WithValue(ctx, "version", version)
log.Info(ctx, "API: New request "+r.URL.Path, "username", user, "client", client, "version", version)
log.Debug(ctx, "API: New request "+r.URL.Path, "username", user, "client", client, "version", version)
r = r.WithContext(ctx)
next.ServeHTTP(w, r)