Skip to content

Commit

Permalink
chore: log HTTP protocol in request start
Browse files Browse the repository at this point in the history
  • Loading branch information
lzap authored and avitova committed Oct 12, 2023
1 parent 5b14d6c commit 2f0e4ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/middleware/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ func LoggerMiddleware(rootLogger *zerolog.Logger) func(next http.Handler) http.H
Str("remote_ip", r.RemoteAddr).
Str("url", r.URL.Path).
Str("method", r.Method).
Int("bytes_in", bytesIn)
Int("bytes_in", bytesIn).
Str("proto", r.Proto)
if edgeId != "" {
lctx = lctx.Str("request_id", edgeId)
}
Expand Down

0 comments on commit 2f0e4ca

Please sign in to comment.