tests: Use zaptest.NewLogger in places we missed

This commit is contained in:
Marek Siarkowicz
2022-04-04 15:45:59 +02:00
parent f09da32f9d
commit d58f971895
8 changed files with 20 additions and 13 deletions

View File

@ -75,7 +75,7 @@ func TestNewRaftLoggerFromZapCore(t *testing.T) {
buf := bytes.NewBuffer(nil)
syncer := zapcore.AddSync(buf)
cr := zapcore.NewCore(
zapcore.NewJSONEncoder(zap.NewProductionEncoderConfig()),
zapcore.NewJSONEncoder(logutil.DefaultZapLoggerConfig.EncoderConfig),
syncer,
zap.NewAtomicLevelAt(zap.InfoLevel),
)