Skip to content

Commit

Permalink
chore: log hostname in verbose request logs (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
Emyrk authored Dec 12, 2024
1 parent 17ec251 commit 2c12582
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/httpmw/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func Logger(log slog.Logger) func(next http.Handler) http.Handler {
sw := &httpapi.StatusWriter{ResponseWriter: w}

httplog := log.With(
slog.F("host", r.Host),
slog.F("path", r.URL.Path),
slog.F("remote_addr", r.RemoteAddr),
slog.F("client_id", r.Header.Get("x-market-client-id")),
Expand Down

0 comments on commit 2c12582

Please sign in to comment.