mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 16:55:46 +00:00
lower ListenerError log level (#6544)
* lower log level of ListenerError
This commit is contained in:
@@ -1897,16 +1897,7 @@ impl<E: EthSpec> Network<E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
SwarmEvent::ListenerError { error, .. } => {
|
SwarmEvent::ListenerError { error, .. } => {
|
||||||
// Ignore quic accept and close errors.
|
debug!(self.log, "Listener closed connection attempt"; "reason" => ?error);
|
||||||
if let Some(error) = error
|
|
||||||
.get_ref()
|
|
||||||
.and_then(|err| err.downcast_ref::<libp2p::quic::Error>())
|
|
||||||
.filter(|err| matches!(err, libp2p::quic::Error::Connection(_)))
|
|
||||||
{
|
|
||||||
debug!(self.log, "Listener closed quic connection"; "reason" => ?error);
|
|
||||||
} else {
|
|
||||||
warn!(self.log, "Listener error"; "error" => ?error);
|
|
||||||
}
|
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
|
|||||||
Reference in New Issue
Block a user