From ea19a6baa798022404cc114b10af290f135c1d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=9E=A8=E7=85=8A?= Date: Thu, 4 Jun 2020 16:25:20 +0800 Subject: [PATCH] move content debug --- client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index 319f0d8..787bd6e 100644 --- a/client.go +++ b/client.go @@ -76,11 +76,12 @@ func (c *Client) Send() error { comm.Log.WithFields(logrus.Fields{"YAR": "Except"}).Debug(c.Response.Except) } + comm.Log.WithFields(logrus.Fields{"YAR": "BodyContent"}).Debug(string(bodyContent)) + if err != nil { return err } - comm.Log.WithFields(logrus.Fields{"YAR": "BodyContent"}).Debug(string(bodyContent)) if c.Response.Except != nil { return c.Response.Except }