From efec60ee908dd02fa2cc13b4a22c5bf310ae1e2a Mon Sep 17 00:00:00 2001 From: Akihito Nakano Date: Tue, 19 Oct 2021 00:30:41 +0000 Subject: [PATCH] Tiny fix: wrong log level (#2720) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Proposed Changes If the `RemoveChain` is critical log level should be crit. 🙂 --- beacon_node/network/src/sync/range_sync/chain_collection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_node/network/src/sync/range_sync/chain_collection.rs b/beacon_node/network/src/sync/range_sync/chain_collection.rs index 13d1bef3c9..d75e18e98c 100644 --- a/beacon_node/network/src/sync/range_sync/chain_collection.rs +++ b/beacon_node/network/src/sync/range_sync/chain_collection.rs @@ -480,7 +480,7 @@ impl ChainCollection { debug_assert_eq!(chain.target_head_slot, target_head_slot); if let Err(remove_reason) = chain.add_peer(network, peer) { if remove_reason.is_critical() { - error!(self.log, "Chain removed after adding peer"; "chain" => id, "reason" => ?remove_reason); + crit!(self.log, "Chain removed after adding peer"; "chain" => id, "reason" => ?remove_reason); } else { error!(self.log, "Chain removed after adding peer"; "chain" => id, "reason" => ?remove_reason); }