Ver Fonte

Warn on calling retry

Santiago Pastorino há 4 anos atrás
pai
commit
79dc77d8eb
1 ficheiros alterados com 6 adições e 0 exclusões
  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;