mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-26 03:26:57 +08:00
both stdout and file
This commit is contained in:
parent
03d910028b
commit
2a78974cc1
@ -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)),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user