Skip to content

Commit

Permalink
Add warning when retrying
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Oct 17, 2024
1 parent c5f1655 commit fc2f81b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)) => {
Expand Down

0 comments on commit fc2f81b

Please sign in to comment.