From ee738e11cd20ec0fb0ef0e727c2addd860fe092c Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Fri, 10 Mar 2023 20:58:24 +0800 Subject: [PATCH] fix cron --- pkg/common/logger/log.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkg/common/logger/log.go b/pkg/common/logger/log.go index 15cd6d14a..044a04ce9 100644 --- a/pkg/common/logger/log.go +++ b/pkg/common/logger/log.go @@ -1,7 +1,6 @@ package log import ( - "OpenIM/pkg/common/config" "OpenIM/pkg/common/constant" "OpenIM/pkg/common/tracelog" "context" @@ -65,12 +64,11 @@ 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", config.Config.Log.StorageLocation + "openIM2.log"}, - ErrorOutputPaths: []string{config.Config.Log.StorageLocation}, + Level: zap.NewAtomicLevelAt(zapcore.DebugLevel), + Development: true, + Encoding: "json", + EncoderConfig: zap.NewProductionEncoderConfig(), + OutputPaths: []string{"stdout"}, Sampling: &zap.SamplingConfig{ Initial: 0, Thereafter: 0,