Skip to content

Commit

Permalink
fix: stop logging the entire block as debug
Browse files Browse the repository at this point in the history
  • Loading branch information
renancloudwalk committed Jun 10, 2024
1 parent 525a76a commit 954cc03
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/eth/consensus/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ impl Consensus {
if consensus.is_leader().await {
tracing::info!(number = data.header.number.as_u64(), "received block to send to followers");

if let Err(e) = consensus.broadcast_sender.send(data) {
tracing::warn!("failed to broadcast block: {:?}", e);
if let Err(_) = consensus.broadcast_sender.send(data) {
tracing::error!("failed to broadcast block");
}
}
}
Expand Down Expand Up @@ -502,7 +502,6 @@ impl Consensus {
GlobalState::shutdown_from("consensus", "failed to discover peers from Kubernetes");
}

// Optionally, sleep for a bit before retrying
sleep(Duration::from_millis(100)).await;
}
}
Expand Down

0 comments on commit 954cc03

Please sign in to comment.