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