From 77af9ca97093c63dbb63092d67eca98a33b5171f Mon Sep 17 00:00:00 2001 From: Brian Caswell Date: Mon, 14 Jun 2021 14:42:06 -0400 Subject: [PATCH 1/3] set azcopy retry notice to debug rather than warn --- src/agent/onefuzz/src/az_copy.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/agent/onefuzz/src/az_copy.rs b/src/agent/onefuzz/src/az_copy.rs index 669bef63c0..28cfbb3905 100644 --- a/src/agent/onefuzz/src/az_copy.rs +++ b/src/agent/onefuzz/src/az_copy.rs @@ -118,9 +118,10 @@ async fn retry_az_impl(mode: Mode, src: &OsStr, dst: &OsStr, args: &[&str]) -> R ..ExponentialBackoff::default() }, operation, - |err, dur| warn!("request attempt failed after {:?}: {:?}", dur, err), + |err, dur| debug!("request attempt failed after {:?}: {:?}", dur, err), ) - .await?; + .await + .with_context(|| format!("azcopy failed after retrying. mode: {}", mode))?; Ok(()) } From a0945ef6a9054c8fd06a3439ac8109e4c5501889 Mon Sep 17 00:00:00 2001 From: Brian Caswell Date: Mon, 14 Jun 2021 14:48:04 -0400 Subject: [PATCH 2/3] fix message --- src/agent/onefuzz/src/az_copy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/onefuzz/src/az_copy.rs b/src/agent/onefuzz/src/az_copy.rs index 28cfbb3905..ebb2b50b30 100644 --- a/src/agent/onefuzz/src/az_copy.rs +++ b/src/agent/onefuzz/src/az_copy.rs @@ -118,7 +118,7 @@ async fn retry_az_impl(mode: Mode, src: &OsStr, dst: &OsStr, args: &[&str]) -> R ..ExponentialBackoff::default() }, operation, - |err, dur| debug!("request attempt failed after {:?}: {:?}", dur, err), + |err, dur| warn!("azcopy attempt failed after {:?}: {:?}", dur, err), ) .await .with_context(|| format!("azcopy failed after retrying. mode: {}", mode))?; From 3af9cb4ec5fb865a4b288b4848bb7816d2915743 Mon Sep 17 00:00:00 2001 From: Brian Caswell Date: Mon, 14 Jun 2021 14:57:16 -0400 Subject: [PATCH 3/3] actually set to debug --- src/agent/onefuzz/src/az_copy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/onefuzz/src/az_copy.rs b/src/agent/onefuzz/src/az_copy.rs index ebb2b50b30..6fcd421b00 100644 --- a/src/agent/onefuzz/src/az_copy.rs +++ b/src/agent/onefuzz/src/az_copy.rs @@ -118,7 +118,7 @@ async fn retry_az_impl(mode: Mode, src: &OsStr, dst: &OsStr, args: &[&str]) -> R ..ExponentialBackoff::default() }, operation, - |err, dur| warn!("azcopy attempt failed after {:?}: {:?}", dur, err), + |err, dur| debug!("azcopy attempt failed after {:?}: {:?}", dur, err), ) .await .with_context(|| format!("azcopy failed after retrying. mode: {}", mode))?;