chore(net): reduce log level for outgoing conn errors (#941)

This commit is contained in:
Matthias Seitz
2023-01-20 17:24:06 +01:00
committed by GitHub
parent ab654dd402
commit e4bf94c3cb
2 changed files with 4 additions and 4 deletions

View File

@@ -689,7 +689,7 @@ where
.set(this.swarm.state().peers().num_inbound_connections() as f64);
}
SwarmEvent::OutgoingPendingSessionClosed { remote_addr, peer_id, error } => {
warn!(
trace!(
target : "net",
?remote_addr,
?peer_id,
@@ -716,7 +716,7 @@ where
.set(this.swarm.state().peers().num_outbound_connections() as f64);
}
SwarmEvent::OutgoingConnectionError { remote_addr, peer_id, error } => {
warn!(
trace!(
target : "net",
?remote_addr,
?peer_id,

View File

@@ -36,7 +36,7 @@ use tokio::{
sync::{mpsc, oneshot},
};
use tokio_stream::wrappers::ReceiverStream;
use tracing::{instrument, trace, warn};
use tracing::{instrument, trace};
mod active;
mod config;
@@ -460,7 +460,7 @@ impl SessionManager {
}
PendingSessionEvent::EciesAuthError { remote_addr, session_id, error, direction } => {
self.remove_pending_session(&session_id);
warn!(
trace!(
target : "net::session",
?error,
?session_id,