Skip to content

Commit

Permalink
cmd: disable zap log sampling (#66)
Browse files Browse the repository at this point in the history
Skipping log lines is not safe to be used by default. Notice that
s3-authmate doesn't have this problem because of the way it constructs
its settings.

See also:
 * nspcc-dev/neofs-node#3011
 * nspcc-dev/neo-go#598
  • Loading branch information
carpawell authored Nov 13, 2024
2 parents 4b9f74f + 0373cbf commit 317558d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/neofs-oauthz/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ func newLogger(v *viper.Viper) (*zap.Logger, error) {
}
}

c.Sampling = nil
if term.IsTerminal(int(os.Stdout.Fd())) {
c.EncoderConfig.EncodeTime = zapcore.ISO8601TimeEncoder
} else {
Expand Down

0 comments on commit 317558d

Please sign in to comment.