From a4b88958c98f45ca22e321ad8d24f74c5a0d0e4d Mon Sep 17 00:00:00 2001 From: Mathieu De Jesus Date: Tue, 3 Dec 2024 17:38:47 +0100 Subject: [PATCH] replace "host" key by "myrtea_host" in zap.log calls --- internals/router/logger_zap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internals/router/logger_zap.go b/internals/router/logger_zap.go index 2fcad7cd..c5c0714e 100644 --- a/internals/router/logger_zap.go +++ b/internals/router/logger_zap.go @@ -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),