From 87e9363d53c75cfb6fd1cd1330529b43de2ce6ef Mon Sep 17 00:00:00 2001 From: Mathieu De Jesus Date: Thu, 5 Dec 2024 13:50:47 +0100 Subject: [PATCH] replace "user" key by "myrtea_user" 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 c5c0714..c6ed485 100644 --- a/internals/router/logger_zap.go +++ b/internals/router/logger_zap.go @@ -46,7 +46,7 @@ func CustomZapRequestLogger(f chimiddleware.LogFormatter) func(next http.Handler gorillacontext.Clear(r) zapFields := entry.(*customZapLogEntry).ZapFields if user != nil { - zapFields = append(zapFields, zap.String("user", user.(string))) + zapFields = append(zapFields, zap.String("myrtea_user", user.(string))) } zapFields = append(zapFields,