style: add comment for including URL params in log path
This commit is contained in:

committed by
Grail Finder (aider)

parent
985956b384
commit
ad8982a112
@ -29,6 +29,7 @@ func LogRequests(next http.Handler) http.Handler {
|
|||||||
ww := &responseWriterWrapper{ResponseWriter: w}
|
ww := &responseWriterWrapper{ResponseWriter: w}
|
||||||
next.ServeHTTP(ww, r)
|
next.ServeHTTP(ww, r)
|
||||||
duration := time.Since(start)
|
duration := time.Since(start)
|
||||||
|
// path should include url params; ai!
|
||||||
log.Debug("request completed",
|
log.Debug("request completed",
|
||||||
"method", r.Method,
|
"method", r.Method,
|
||||||
"path", r.URL.Path,
|
"path", r.URL.Path,
|
||||||
|
Reference in New Issue
Block a user