Skip to content

Commit

Permalink
downgrade event sf producer and pruner to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
joshieDo committed Dec 2, 2024
1 parent d7f5846 commit 0f5b09e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/node/events/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,25 +298,25 @@ impl NodeState {
fn handle_pruner_event(&self, event: PrunerEvent) {
match event {
PrunerEvent::Started { tip_block_number } => {
info!(tip_block_number, "Pruner started");
debug!(tip_block_number, "Pruner started");
}
PrunerEvent::Finished { tip_block_number, elapsed, stats } => {
let stats = format!(
"[{}]",
stats.iter().map(|item| item.to_string()).collect::<Vec<_>>().join(", ")
);
info!(tip_block_number, ?elapsed, %stats, "Pruner finished");
debug!(tip_block_number, ?elapsed, pruned_segments = %stats, "Pruner finished");
}
}
}

fn handle_static_file_producer_event(&self, event: StaticFileProducerEvent) {
match event {
StaticFileProducerEvent::Started { targets } => {
info!(?targets, "Static File Producer started");
debug!(?targets, "Static File Producer started");
}
StaticFileProducerEvent::Finished { targets, elapsed } => {
info!(?targets, ?elapsed, "Static File Producer finished");
debug!(?targets, ?elapsed, "Static File Producer finished");
}
}
}
Expand Down

0 comments on commit 0f5b09e

Please sign in to comment.