mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-03 00:12:48 +08:00
Error code standardization
This commit is contained in:
parent
c77868bfae
commit
5e5d238e82
@ -23,7 +23,7 @@ func SetOperationID(ctx context.Context, operationID string) {
|
||||
|
||||
func ShowLog(ctx context.Context) {
|
||||
t := ctx.Value(TraceLogKey).(*ApiInfo)
|
||||
log.Info(t.OperationID, "funcs", len(*t.Funcs), "api:", t.ApiName)
|
||||
log.Info(t.OperationID, "api: ", t.ApiName)
|
||||
for _, v := range *t.Funcs {
|
||||
if v.Err != nil {
|
||||
log.Error(t.OperationID, "func: ", v.FuncName, " args: ", v.Args, v.Err.Error())
|
||||
|
Loading…
x
Reference in New Issue
Block a user