diff --git a/pkg/http/logger.go b/pkg/http/logger.go index ab880fa..91d7f54 100644 --- a/pkg/http/logger.go +++ b/pkg/http/logger.go @@ -38,6 +38,7 @@ func LogRequest(next http.Handler) http.Handler { t := time.Now() logger := loggerResponseWriter{w, 0, 0} + requestPath := r.URL.Path next.ServeHTTP(&logger, r) statusCode := logger.statusCode @@ -47,7 +48,7 @@ func LogRequest(next http.Handler) http.Handler { log.Printf("HTTP - %s %s \"%s\" %d %d %s\n", RemoteAddr(r), r.Method, - r.URL.Path, + requestPath, statusCode, logger.responseSize, time.Since(t),