fix: re-qualify error to warn

This commit is contained in:
Ludo Galabru
2023-05-04 10:12:33 -04:00
parent a8d76b03ac
commit 9431684afe

View File

@@ -156,7 +156,7 @@ pub async fn download_and_parse_block_with_retry(
Err(e) => {
errors_count += 1;
ctx.try_log(|logger| {
slog::error!(
slog::warn!(
logger,
"unable to retrieve block #{block_hash} (attempt #{errors_count}): {}",
e.to_string()
@@ -182,7 +182,7 @@ pub async fn download_block_with_retry(
Err(e) => {
errors_count += 1;
ctx.try_log(|logger| {
slog::error!(
slog::warn!(
logger,
"unable to retrieve block #{block_hash} (attempt #{errors_count}): {}",
e.to_string()
@@ -199,7 +199,7 @@ pub async fn download_block_with_retry(
Err(e) => {
errors_count += 1;
ctx.try_log(|logger| {
slog::error!(
slog::warn!(
logger,
"unable to retrieve block #{block_hash} (attempt #{errors_count}): {}",
e.to_string()