forked from TrueCloudLab/neoneo-go
cli/server: disable sampling completely
It's not safe, we don't want to lose messages and we don't have that many of them to try to figure out what is the better value than the default 100.
This commit is contained in:
parent
f796749658
commit
a52e016c22
1 changed files with 1 additions and 0 deletions
|
@ -134,6 +134,7 @@ func handleLoggingParams(ctx *cli.Context, cfg config.ApplicationConfiguration)
|
|||
cc.EncoderConfig.EncodeTime = zapcore.ISO8601TimeEncoder
|
||||
cc.Encoding = "console"
|
||||
cc.Level = zap.NewAtomicLevelAt(level)
|
||||
cc.Sampling = nil
|
||||
|
||||
if logPath := cfg.LogPath; logPath != "" {
|
||||
if err := io.MakeDirForFile(logPath, "logger"); err != nil {
|
||||
|
|
Loading…
Reference in a new issue