Skip to content

Commit

Permalink
Merge pull request #258 from nspcc-dev/fix-log-sampling
Browse files Browse the repository at this point in the history
cmd: disable zap log sampling
  • Loading branch information
roman-khimov authored Nov 13, 2024
2 parents 512f1d7 + 2bb64f7 commit 12f6cdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/neofs-rest-gw/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ func newLogger(v *viper.Viper) *zap.Logger {
c := zap.NewProductionConfig()
c.Level = zap.NewAtomicLevelAt(lvl)
c.Encoding = "console"
c.Sampling = nil
// If the program is run in TTY, the logger adds a timestamp to its entries.
if term.IsTerminal(int(os.Stdout.Fd())) {
c.EncoderConfig.EncodeTime = zapcore.ISO8601TimeEncoder
Expand Down

0 comments on commit 12f6cdf

Please sign in to comment.