Skip to content

Commit

Permalink
Fix merge error
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Manuel Fresia <[email protected]>
  • Loading branch information
juanfresia committed Jun 15, 2020
1 parent 7131dca commit 3d9bf28
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 @@ -626,7 +626,7 @@ func (c *Client) Do(req *Request) (*http.Response, error) {
if doErr != nil {
switch v := logger.(type) {
case LeveledFormatLogger:
v.Errorf("%s %s: request failed: %s", req.Method, req.URL, err)
v.Errorf("%s %s: request failed: %s", req.Method, req.URL, doErr)
case LeveledLogger:
v.Error("request failed", "error", doErr, "method", req.Method, "url", req.URL)
case Logger:
Expand Down

0 comments on commit 3d9bf28

Please sign in to comment.