Przeglądaj źródła

Warn on calling retry

Santiago Pastorino 4 lat temu
rodzic
commit
79dc77d8eb
1 zmienionych plików z 6 dodań i 0 usunięć
  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;