提交 82f1c819 authored 作者: zhanglibo's avatar zhanglibo

日志

上级 2a01f741
...@@ -46,7 +46,7 @@ func post(ctx context.Context, method string, req interface{}) (res string, err ...@@ -46,7 +46,7 @@ func post(ctx context.Context, method string, req interface{}) (res string, err
defer func() { defer func() {
_ = resp.Close() _ = resp.Close()
ctx = context.WithValue(ctx, "Method", "POST") ctx = context.WithValue(ctx, "Method", "POST")
ctx = context.WithValue(ctx, "URI", method) ctx = context.WithValue(ctx, "URI", Url)
if err != nil { if err != nil {
g.Log().Ctx(ctx).Infof("参数【%v】错误【%v】响应时间【%v】", param.MustToJsonString(), err.Error(), gtime.TimestampMilli()-Start) g.Log().Ctx(ctx).Infof("参数【%v】错误【%v】响应时间【%v】", param.MustToJsonString(), err.Error(), gtime.TimestampMilli()-Start)
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论