From fc2f81b5c895be21516ead2178f252940a9836ff Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Thu, 17 Oct 2024 11:16:24 +0200 Subject: [PATCH] Add warning when retrying --- src/ctx.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ctx.rs b/src/ctx.rs index 1948bc5..d2bd7a1 100644 --- a/src/ctx.rs +++ b/src/ctx.rs @@ -229,6 +229,14 @@ impl Ctx { tries -= 1; body = b; progress = prog; + + if tries > 0 { + tracing::warn!( + url = url.as_ref(), + "HTTP GET failed to retrieve entire body, retrying" + ); + } + continue; } Err(DownloadError::Ureq(err)) => {