lower ListenerError log level (#6544)

* lower log level of ListenerError
This commit is contained in:
João Oliveira
2024-10-29 05:26:06 +00:00
committed by GitHub
parent fdf456f398
commit 48aa35313c

View File

@@ -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
}
_ => {