完善日志打印

This commit is contained in:
Yun
2024-01-21 21:03:17 +08:00
parent cff11c97c3
commit f3a416e408
+1
View File
@@ -151,6 +151,7 @@ func (c *Curlx) Send(ctx context.Context, p ...Param) (res string, httpcode int,
default: default:
body, _ = io.ReadAll(response.Body) body, _ = io.ReadAll(response.Body)
} }
c.opts.Logger.Infof(ctx,"curlx.Send body:%s", string(body))
return string(body), status, nil return string(body), status, nil
} }