From a348af74fa8545be39a621b4e724e21820becb6b Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Fri, 10 Mar 2023 20:58:44 +0800 Subject: [PATCH] fix cron --- pkg/common/logger/log.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkg/common/logger/log.go b/pkg/common/logger/log.go index 044a04ce9..d9f6fb974 100644 --- a/pkg/common/logger/log.go +++ b/pkg/common/logger/log.go @@ -64,11 +64,12 @@ type ZapLogger struct { func NewZapLogger() (*ZapLogger, error) { zapConfig := zap.Config{ - Level: zap.NewAtomicLevelAt(zapcore.DebugLevel), - Development: true, - Encoding: "json", - EncoderConfig: zap.NewProductionEncoderConfig(), - OutputPaths: []string{"stdout"}, + Level: zap.NewAtomicLevelAt(zapcore.DebugLevel), + Development: true, + Encoding: "json", + EncoderConfig: zap.NewProductionEncoderConfig(), + OutputPaths: []string{"stdout"}, + ErrorOutputPaths: []string{"stdout"}, Sampling: &zap.SamplingConfig{ Initial: 0, Thereafter: 0,