When logging urls, also log method

This commit is contained in:
Jeff Mitchell committed 2020-09-16 10:21:35 -04:00
1 parent c1cc2e3e8e
commit a67d5c8abb
1 file changed
+1 -1
+1 -1
View File
@@ -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