Skip to content

Commit

Permalink
cmd: disable zap log sampling (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-khimov authored Nov 13, 2024
2 parents 8a090d4 + ee59126 commit 231599c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This document outlines major changes between releases.
### Added

### Changed
- Log sampling is disabled now (#1024)

### Fixed

Expand Down
1 change: 1 addition & 0 deletions cmd/s3-gw/app_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ func newLogger(v *viper.Viper) *Logger {
c := zap.NewProductionConfig()
c.Level = zap.NewAtomicLevelAt(lvl)
c.Encoding = "console"
c.Sampling = nil
if term.IsTerminal(int(os.Stdout.Fd())) {
c.EncoderConfig.EncodeTime = zapcore.ISO8601TimeEncoder
} else {
Expand Down

0 comments on commit 231599c

Please sign in to comment.