mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 11:41:51 +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, .. } => {
|
||||
// Ignore quic accept and close errors.
|
||||
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);
|
||||
}
|
||||
debug!(self.log, "Listener closed connection attempt"; "reason" => ?error);
|
||||
None
|
||||
}
|
||||
_ => {
|
||||
|
||||
Reference in New Issue
Block a user