Error code standardization

test-errcode
skiffer-git 2 years ago
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…
Cancel
Save