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)), }