Skip to content

Commit 57b71af

Browse files
xiaochaoren1SongZhen0704
authored andcommitted
feat: improve curl logs
1 parent c9fc2f0 commit 57b71af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/controller/common/curl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func doRequest(req *http.Request, url string, options ...HeaderOption) (*simplej
145145

146146
response, err := simplejson.NewJson(respBytes)
147147
if err != nil {
148-
log.Errorf("parse (%s) body failed, (%v)", url, err)
148+
log.Errorf("parse (%s) body failed; error: %v; res: %s", url, err, string(respBytes))
149149
return errResponse, err
150150
}
151151

0 commit comments

Comments
 (0)