Skip to content

Commit

Permalink
app: Replace global zap logger
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
  • Loading branch information
smallhive committed Feb 28, 2024
1 parent 95329dd commit 431c312
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/s3-gw/app_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ func newLogger(v *viper.Viper) *Logger {
panic(fmt.Sprintf("build zap logger instance: %v", err))
}

zap.ReplaceGlobals(l)

return &Logger{
logger: l,
lvl: c.Level,
Expand Down

0 comments on commit 431c312

Please sign in to comment.