Skip to content

Commit

Permalink
replace "host" key by "myrtea_host" in zap.log calls
Browse files Browse the repository at this point in the history
  • Loading branch information
WatoLua committed Dec 3, 2024
1 parent 4f3b261 commit a4b8895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internals/router/logger_zap.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (l *CustomZapLogFormatter) NewLogEntry(r *http.Request) chimiddleware.LogEn
entry.ZapFields = append(entry.ZapFields,
zap.String("method", r.Method),
zap.String("scheme", scheme),
zap.String("host", r.Host),
zap.String("myrtea_host", r.Host),
zap.String("path", r.RequestURI),
zap.String("proto", r.Proto),
zap.String("remoteaddr", r.RemoteAddr),
Expand Down

0 comments on commit a4b8895

Please sign in to comment.