Skip to content

Commit

Permalink
fix: log format
Browse files Browse the repository at this point in the history
Signed-off-by: rare-magma <[email protected]>
  • Loading branch information
rare-magma committed Jan 19, 2025
1 parent e5eae08 commit cacab0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ func (t *retryableTransport) RoundTrip(req *http.Request) (*http.Response, error
if req.Body != nil {
req.Body = io.NopCloser(bytes.NewBuffer(bodyBytes))
}
log.Printf("Retry (%d) of request to: %s", retries, req.URL)
log.Printf("Previous request failed with %s", resp.Status)
log.Printf("Retry %d of request to: %s", retries+1, req.URL)
resp, err = t.transport.RoundTrip(req)
retries++
}
Expand Down

0 comments on commit cacab0b

Please sign in to comment.