style: add comment for including URL params in log path

This commit is contained in:
Grail Finder
2025-05-02 14:31:17 +03:00
committed by Grail Finder (aider)
parent 985956b384
commit ad8982a112

View File

@ -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,