mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-15 14:35:57 +08:00
Merge branch 'errcode' of github.com:OpenIMSDK/Open-IM-Server into errcode
This commit is contained in:
@@ -107,7 +107,11 @@ func SetCtxWarn(ctx context.Context, funcName string, err error, args ...interfa
|
||||
}
|
||||
|
||||
func SetContextInfo(ctx context.Context, funcName string, logLevel logrus.Level, err error, args ...interface{}) {
|
||||
t := ctx.Value(TraceLogKey).(*FuncInfos)
|
||||
var t *FuncInfos
|
||||
var ok bool
|
||||
if t, ok = ctx.Value(TraceLogKey).(*FuncInfos); !ok {
|
||||
return
|
||||
}
|
||||
var funcInfo FuncInfo
|
||||
funcInfo.Args = make(map[string]interface{})
|
||||
argsHandle(args, funcInfo.Args)
|
||||
|
||||
Reference in New Issue
Block a user