When logging urls, also log method
This commit is contained in:
1 parent
c1cc2e3e8e
commit
a67d5c8abb
1 file changed
+1
-1
@@ -207,7 +207,7 @@ func wrapHandlerWithCommonFuncs(h http.Handler, c *Controller, props HandlerProp
|
||||
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
if logUrls {
|
||||
c.logger.Trace("request received", "url", r.URL.RequestURI())
|
||||
c.logger.Trace("request received", "method", r.Method, "url", r.URL.RequestURI())
|
||||
}
|
||||
|
||||
// Set the Cache-Control header for all responses returned
|
||||
|
||||
Reference in new issue
Block a user