Browse Source

Warn on calling retry

Santiago Pastorino 4 năm trước cách đây
mục cha
commit
79dc77d8eb
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      src/github.rs

+ 6 - 0
src/github.rs

@@ -88,6 +88,12 @@ impl GithubClient {
             pub source_import: RateLimit,
         }
 
+        log::warn!(
+            "Retrying after {} seconds, remaining attepts {}",
+            sleep.as_secs(),
+            remaining_attempts,
+        );
+
         async move {
             tokio::time::delay_for(sleep).await;