From ad8982a112474a8e250c8bf1dd1bd4deacb872cb Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Fri, 2 May 2025 14:31:17 +0300 Subject: [PATCH] style: add comment for including URL params in log path --- handlers/middleware.go | 1 + 1 file changed, 1 insertion(+) diff --git a/handlers/middleware.go b/handlers/middleware.go index c5ca97e..fe83815 100644 --- a/handlers/middleware.go +++ b/handlers/middleware.go @@ -29,6 +29,7 @@ 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,