Tiny fix: wrong log level (#2720)
## Proposed Changes
If the `RemoveChain` is critical log level should be crit. 🙂
This commit is contained in:
parent
d2e3d4c6f1
commit
efec60ee90
@ -480,7 +480,7 @@ impl<T: BeaconChainTypes> ChainCollection<T> {
|
|||||||
debug_assert_eq!(chain.target_head_slot, target_head_slot);
|
debug_assert_eq!(chain.target_head_slot, target_head_slot);
|
||||||
if let Err(remove_reason) = chain.add_peer(network, peer) {
|
if let Err(remove_reason) = chain.add_peer(network, peer) {
|
||||||
if remove_reason.is_critical() {
|
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 {
|
} else {
|
||||||
error!(self.log, "Chain removed after adding peer"; "chain" => id, "reason" => ?remove_reason);
|
error!(self.log, "Chain removed after adding peer"; "chain" => id, "reason" => ?remove_reason);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user