Add remote addr to http log

This commit is contained in:
Jannis Mattheis
2020-10-26 11:58:09 +01:00
parent 3191988801
commit ea7dbdbd51
+1
View File
@@ -58,6 +58,7 @@ func accessLogger(r *http.Request, status, size int, dur time.Duration) {
Str("host", r.Host).
Int("status", status).
Int("size", size).
Str("ip", r.RemoteAddr).
Str("path", r.URL.Path).
Str("duration", dur.String()).
Msg("HTTP")