Skip to content

Commit df0b434

Browse files
authored
Reduce log level on retry. (#111)
1 parent ca9127b commit df0b434

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

script/bin/operator.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use sp1_vector_primitives::types::ProofType;
2727
use sp1_vectorx_script::relay::{self};
2828
use sp1_vectorx_script::SP1_VECTOR_ELF;
2929
use tracing::level_filters::LevelFilter;
30-
use tracing::{debug, error, info, instrument};
30+
use tracing::{debug, error, info, instrument, warn};
3131
use tracing_subscriber::layer::SubscriberExt;
3232
use tracing_subscriber::util::SubscriberInitExt;
3333

@@ -884,7 +884,7 @@ where
884884
usd_estimate = round_to_decimals(effective_gas_estimate, 2)
885885
);
886886

887-
error!(
887+
warn!(
888888
message = "Failed to match send proof condition",
889889
gas_estimate = effective_gas_estimate,
890890
attempts = attempt
@@ -893,13 +893,13 @@ where
893893
// 2. Otherwise let's wait and see if the price will go down later. Do this
894894
// for [`max_estimate_retries`] times
895895
if attempt < max_estimate_retries {
896-
error!(message = "Retrying...",);
896+
warn!(message = "Retrying...",);
897897
sleep(Duration::from_secs(retry_sleep_interval)).await;
898898
attempt += 1;
899899
continue;
900900
}
901901

902-
error!(message = "Exhausted all retires. Checking one more time but this time with a higher threshold",);
902+
warn!(message = "Exhausted all retires. Checking one more time but this time with a higher threshold",);
903903

904904
// 3. If we reached the maximum number of retires we should check one more time,
905905
// but this time with a higher threshold. If the higher threshold doesn't help
@@ -913,7 +913,7 @@ where
913913

914914
// If we are here it means that we have exhausted all the retires and everything.
915915
// There is nothing that we can do now. :(
916-
error!(message = "Exhausted all options. Failed to submit proof. Exiting loop");
916+
warn!(message = "Exhausted all options. Failed to submit proof. Exiting loop");
917917
bail!("Failed to match send proof condition");
918918
};
919919

0 commit comments

Comments
 (0)