mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-27 20:30:40 +08:00
ctx error
This commit is contained in:
parent
78a30a7663
commit
863e32898a
@ -105,7 +105,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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user