Error code standardization

This commit is contained in:
skiffer-git 2023-01-03 14:19:23 +08:00
parent c77868bfae
commit 5e5d238e82

View File

@ -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())