Skip to content

Commit 2c12582

Browse files
authored
chore: log hostname in verbose request logs (#77)
1 parent 17ec251 commit 2c12582

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/httpmw/logger.go

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ func Logger(log slog.Logger) func(next http.Handler) http.Handler {
1515
sw := &httpapi.StatusWriter{ResponseWriter: w}
1616

1717
httplog := log.With(
18+
slog.F("host", r.Host),
1819
slog.F("path", r.URL.Path),
1920
slog.F("remote_addr", r.RemoteAddr),
2021
slog.F("client_id", r.Header.Get("x-market-client-id")),

0 commit comments

Comments
 (0)