Skip to content

Commit bc29e75

Browse files
committed
debug call change
1 parent ee8f2a8 commit bc29e75

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

httpclient/multipartrequest.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package httpclient
33
import (
44
"context"
55
"encoding/base64"
6-
"encoding/json"
76
"fmt"
87
"io"
98
"mime/multipart"
@@ -123,12 +122,7 @@ func (c *Client) DoMultiPartRequest(method, endpoint string, files map[string][]
123122

124123
// Debugging
125124
c.Sugar.Debug("LOGHERE")
126-
jsonData, err := json.MarshalIndent(req, "", " ")
127-
if err != nil {
128-
c.Sugar.Debugf("error marshalling: %v", err)
129-
} else {
130-
c.Sugar.Debug(string(jsonData))
131-
}
125+
c.Sugar.Debugf("%+v", req)
132126

133127
resp, requestErr := c.http.Do(req)
134128
duration := time.Since(startTime)

0 commit comments

Comments
 (0)