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:
Roman Khimov 2020-01-13 16:44:12 +03:00
parent f796749658
commit a52e016c22

View file

@ -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 {