From 990d8660b351b5aab6e3380b69d023ce750e2744 Mon Sep 17 00:00:00 2001 From: "Grail Finder (aider)" Date: Fri, 2 May 2025 14:31:22 +0300 Subject: [PATCH] feat: include URL params in request logging --- handlers/middleware.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(), )