Skip to content

Commit

Permalink
replace "user" key by "myrtea_user" in zap.log calls
Browse files Browse the repository at this point in the history
  • Loading branch information
WatoLua committed Dec 5, 2024
1 parent a4b8895 commit 87e9363
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 @@ -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,
Expand Down

0 comments on commit 87e9363

Please sign in to comment.