From e6ca6b938c14efee13855e2c73ccac7076a6884f Mon Sep 17 00:00:00 2001 From: Jacob Kaufmann Date: Sun, 10 Sep 2023 11:08:00 -0600 Subject: [PATCH] fix logging for retrieving proposer info (#60) --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0e957cf..43adddf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -166,16 +166,18 @@ impl RethNodeCommandConfig for EvaRethNodeCommandExt { tracing::info!("loading validators..."); if let Err(err) = validators.load().await { tracing::error!("unable to load validators {err}"); + } else { + tracing::info!("successfully loaded validators"); } - tracing::info!("successfully loaded validators"); // retrieve proposer duties for the current epoch tracing::info!("retrieving proposer duties..."); let epoch = clock.current_epoch().expect("beyond genesis"); if let Err(err) = scheduler.fetch_duties(epoch).await { tracing::error!("unable to retrieve proposer duties {err}"); + } else { + tracing::info!("successfully retrieved proposer duties"); } - tracing::info!("successfully retrieved proposer duties"); // retrieve proposer schedule from relay and validate registrations tracing::info!("retrieving proposer schedule...");