Skip to content

Commit

Permalink
Merge pull request #156 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
carpawell authored Nov 13, 2024
2 parents ab6ffbb + 4e655f6 commit 0c35d3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/neo-exporter/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func New(ctx context.Context, cfg *viper.Viper) (*monitor.Monitor, error) {
logConf.EncoderConfig.EncodeTime = func(_ time.Time, _ zapcore.PrimitiveArrayEncoder) {}
}
logConf.Level = WithLevel(cfg.GetString(cfgLoggerLevel))
logConf.Sampling = nil
logger, err := logConf.Build()
if err != nil {
return nil, err
Expand Down

0 comments on commit 0c35d3c

Please sign in to comment.