Skip to content

Commit

Permalink
Update client.go
Browse files Browse the repository at this point in the history
Co-authored-by: Tulir Asokan <tulir@maunium.net>
  • Loading branch information
sumnerevans and tulir authored Jun 27, 2023
1 parent 4229a57 commit 41349c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ func (cli *Client) executeCompiledRequest(req *http.Request, retries int, backof
var body []byte
if res.StatusCode < 200 || res.StatusCode >= 300 {
body, err = ParseErrorResponse(req, res)
cli.LogRequestDone(req, res, err, nil, len(body), duration)
cli.LogRequestDone(req, res, nil, nil, len(body), duration)
} else {
body, err = handler(req, res, responseJSON)
cli.LogRequestDone(req, res, nil, err, len(body), duration)
Expand Down

0 comments on commit 41349c5

Please sign in to comment.