diff --git a/util.go b/util.go index 27199740..0d9d1d9a 100644 --- a/util.go +++ b/util.go @@ -34,8 +34,10 @@ func realpath(path string) (string, error) { func loggerForRequest(r *http.Request) *log.Entry { return log.WithContext(r.Context()).WithFields(log.Fields{ - "ip": getUserIP(r), - "request": r.URL.String(), + "ip": getUserIP(r), + "host": r.Host, + "path": r.URL.String(), + "method": r.Method, }) }