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 29, 2024
1 parent a2a2035 commit e0d1565
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)

Check warning on line 417 in cmd/s3-gw/app_settings.go

View check run for this annotation

Codecov / codecov/patch

cmd/s3-gw/app_settings.go#L416-L417

Added lines #L416 - L417 were not covered by tests
return &Logger{
logger: l,
lvl: c.Level,
Expand Down

0 comments on commit e0d1565

Please sign in to comment.