mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-09-20 02:59:59 +08:00
fix: zap log panic
This commit is contained in:
parent
230513d61b
commit
120101fdcc
@ -208,7 +208,7 @@ func (l *ZapLogger) Error(ctx context.Context, msg string, err error, keysAndVal
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
keysAndValues = append(keysAndValues, "error", err.Error())
|
keysAndValues = append(keysAndValues, "error", err.Error())
|
||||||
}
|
}
|
||||||
keysAndValues = append([]interface{}{constant.OperationID, mcontext.GetOperationID(ctx)}, keysAndValues...)
|
keysAndValues = l.kvAppend(ctx, keysAndValues)
|
||||||
l.zap.Errorw(msg, keysAndValues...)
|
l.zap.Errorw(msg, keysAndValues...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user