From 2a78974cc10936ebae0a93874365e10439c65cf0 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Fri, 9 Jun 2023 10:58:12 +0800 Subject: [PATCH] both stdout and file --- pkg/common/log/zap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/log/zap.go b/pkg/common/log/zap.go index 9f6fe633a..407fc8f12 100644 --- a/pkg/common/log/zap.go +++ b/pkg/common/log/zap.go @@ -119,7 +119,7 @@ func (l *ZapLogger) cores(isStdout bool, isJson bool, logLocation string, rotate return nil, err } var cores []zapcore.Core - if logLocation != "" && !isStdout { + if logLocation != "" { cores = []zapcore.Core{ zapcore.NewCore(fileEncoder, writer, zap.NewAtomicLevelAt(l.level)), }