Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
fix panic in log when err is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
jaffee committed Oct 11, 2019
1 parent 29aaccb commit 0c53860
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 @@ -1127,7 +1127,7 @@ func (c *Client) doRequest(host *URI, method, path string, headers map[string]st
if tries == 0 {
break
}
c.logger.Printf("request failed with: %s status: %d, retrying after %d more time(s) after %v ", err.Error(), resp.StatusCode, tries, sleepTime)
c.logger.Printf("request failed with: %v status: %d, retrying after %d more time(s) after %v ", err, resp.StatusCode, tries, sleepTime)
time.Sleep(sleepTime)
sleepTime *= 2
if sleepTime > c.maxRetrySleepTime {
Expand Down

0 comments on commit 0c53860

Please sign in to comment.