diff --git a/handlers/middleware.go b/handlers/middleware.go index fe83815..dfdae06 100644 --- a/handlers/middleware.go +++ b/handlers/middleware.go @@ -29,10 +29,9 @@ func LogRequests(next http.Handler) http.Handler { ww := &responseWriterWrapper{ResponseWriter: w} next.ServeHTTP(ww, r) duration := time.Since(start) - // path should include url params; ai! log.Debug("request completed", "method", r.Method, - "path", r.URL.Path, + "path", r.URL.RequestURI(), "status", ww.status, "duration", duration.String(), )