Skip to content

Commit

Permalink
fix logging for retrieving proposer info (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobkaufmann authored Sep 10, 2023
1 parent 9c5c10b commit e6ca6b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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...");
Expand Down

0 comments on commit e6ca6b9

Please sign in to comment.