Skip to content

Commit

Permalink
cmd: disable zap log sampling
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

Signed-off-by: Roman Khimov <[email protected]>
  • Loading branch information
roman-khimov committed Nov 13, 2024
1 parent 4b9f74f commit 0373cbf
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 0373cbf

Please sign in to comment.