From 0373cbfcc442f73fdcaf779e6db6deebb87c6d00 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 13 Nov 2024 15:33:02 +0300 Subject: [PATCH] cmd: disable zap log sampling 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: * https://github.com/nspcc-dev/neofs-node/pull/3011 * https://github.com/nspcc-dev/neo-go/pull/598 Signed-off-by: Roman Khimov --- cmd/neofs-oauthz/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/neofs-oauthz/config.go b/cmd/neofs-oauthz/config.go index 4b8e52c..5c0c7be 100644 --- a/cmd/neofs-oauthz/config.go +++ b/cmd/neofs-oauthz/config.go @@ -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 {