From e4bf94c3cb98b27897847854a52028e96056a65c Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 20 Jan 2023 17:24:06 +0100 Subject: [PATCH] chore(net): reduce log level for outgoing conn errors (#941) --- crates/net/network/src/manager.rs | 4 ++-- crates/net/network/src/session/mod.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/net/network/src/manager.rs b/crates/net/network/src/manager.rs index b24e6ce8eb..dc9a32ece9 100644 --- a/crates/net/network/src/manager.rs +++ b/crates/net/network/src/manager.rs @@ -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, diff --git a/crates/net/network/src/session/mod.rs b/crates/net/network/src/session/mod.rs index 6fd009c928..a9f1360b98 100644 --- a/crates/net/network/src/session/mod.rs +++ b/crates/net/network/src/session/mod.rs @@ -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,