Skip to content

Commit 9ff3957

Browse files
committed
store: Do not log chain head updates
The log statement is superseded by a Prometheus metric that tracks chain head updates, and we were logging this _a lot_
1 parent c46a280 commit 9ff3957

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

store/postgres/src/chain_head_listener.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl ChainHeadUpdateListener {
3838
head_block_number: 0,
3939
};
4040
let (update_sender, update_receiver) = watch::channel(none_update);
41-
Self::listen(logger, ingestor_metrics, &mut listener, update_sender);
41+
Self::listen(ingestor_metrics, &mut listener, update_sender);
4242

4343
ChainHeadUpdateListener {
4444
update_receiver,
@@ -51,13 +51,10 @@ impl ChainHeadUpdateListener {
5151
}
5252

5353
fn listen(
54-
logger: Logger,
5554
metrics: Arc<BlockIngestorMetrics>,
5655
listener: &mut NotificationListener,
5756
update_sender: watch::Sender<ChainHeadUpdate>,
5857
) {
59-
let logger = logger.clone();
60-
6158
// Process chain head updates in a dedicated task
6259
graph::spawn(
6360
listener
@@ -83,14 +80,6 @@ impl ChainHeadUpdateListener {
8380
futures03::future::ok(Some(update))
8481
})
8582
.try_for_each(move |update| {
86-
debug!(
87-
logger.clone(),
88-
"Received chain head update";
89-
"network" => &update.network_name,
90-
"head_block_hash" => format!("{}", update.head_block_hash),
91-
"head_block_number" => &update.head_block_number,
92-
);
93-
9483
futures03::future::ready(update_sender.broadcast(update).map_err(|_| ()))
9584
}),
9685
);

0 commit comments

Comments
 (0)