mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
zap
This commit is contained in:
parent
682eda06b2
commit
2558e2a1db
@ -103,7 +103,7 @@ func (l *ZapLogger) cores(logLevel int, isStdout bool) (zap.Option, error) {
|
|||||||
var cores []zapcore.Core
|
var cores []zapcore.Core
|
||||||
if config.Config.Log.StorageLocation != "" {
|
if config.Config.Log.StorageLocation != "" {
|
||||||
cores = []zapcore.Core{
|
cores = []zapcore.Core{
|
||||||
zapcore.NewCore(fileEncoder, writer, zap.NewAtomicLevelAt(zapcore.Level(logLevel))),
|
zapcore.NewCore(fileEncoder, writer, zap.NewAtomicLevelAt(logLevelMap[logLevel])),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if isStdout {
|
if isStdout {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user