Skip to content

Commit

Permalink
Improves warnings messages
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed Nov 24, 2022
1 parent df3a893 commit afca26c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions phase2-coordinator/src/s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl S3Ctx {
}

// Exponential backoff, https://docs.aws.amazon.com/elastictranscoder/latest/developerguide/error-handling.html#api-retries
warn!("Retrying s3 request because of: {}", e);
warn!("Retrying s3 delete contributors.json request because of: {}", e);
let sleep_time = 2u32.pow(attempt) * BACKOFF_SLEEP_TIME_MILLISECS;
attempt += 1;
time::sleep(std::time::Duration::from_millis(sleep_time.into())).await;
Expand Down Expand Up @@ -144,7 +144,7 @@ impl S3Ctx {
..Default::default()
};

warn!("Retrying s3 request because of: {}", e);
warn!("Retrying s3 upload contributors.json request because of: {}", e);
let sleep_time = 2u32.pow(attempt) * BACKOFF_SLEEP_TIME_MILLISECS;
attempt += 1;
time::sleep(std::time::Duration::from_millis(sleep_time.into())).await;
Expand Down Expand Up @@ -209,7 +209,7 @@ impl S3Ctx {
..Default::default()
};

warn!("Retrying s3 request because of: {}", e);
warn!("Retrying s3 upload challenge request because of: {}", e);
let sleep_time = 2u32.pow(attempt) * BACKOFF_SLEEP_TIME_MILLISECS;
attempt += 1;
time::sleep(std::time::Duration::from_millis(sleep_time.into())).await;
Expand Down Expand Up @@ -270,7 +270,7 @@ impl S3Ctx {
}

// Exponential backoff, https://docs.aws.amazon.com/elastictranscoder/latest/developerguide/error-handling.html#api-retries
warn!("Retrying s3 request because of: {}", e);
warn!("Retrying s3 get object request because of: {}", e);
let sleep_time = 2u32.pow(attempt) * BACKOFF_SLEEP_TIME_MILLISECS;
attempt += 1;
time::sleep(std::time::Duration::from_millis(sleep_time.into())).await;
Expand Down

0 comments on commit afca26c

Please sign in to comment.