Skip to content

Commit 3a33118

Browse files
committed
add log to requester
1 parent dc5d615 commit 3a33118

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/utils/requester.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ func (r HTTPRequester) Do(url, method string, body io.Reader, headers []Header)
207207
if delay > maxRetryInterval {
208208
delay = maxRetryInterval
209209
}
210+
r.logger.Debug(fmt.Sprintf("retrying request (attempt %d of %d) after %v", i+2, r.retries, delay))
210211
time.Sleep(delay)
211212
}
212213
}

0 commit comments

Comments
 (0)