Skip to content

Commit

Permalink
reduce log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
sistemd committed Jan 19, 2024
1 parent cf7289e commit 29fe1d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/p2p/src/main_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ impl MainLoop {

// Only allow one connection per peer.
if num_established.get() > 1 {
tracing::warn!(%peer_id, "Peer has more than one connection, closing");
tracing::debug!(%peer_id, "Peer has more than one connection, closing");
if let Err(e) = self.disconnect(peer_id).await {
tracing::error!(%e, "Failed to disconnect peer");
tracing::debug!(%e, "Failed to disconnect peer");
}
return;
}
Expand All @@ -227,7 +227,7 @@ impl MainLoop {
if recent_peers.contains(&peer_ip) {
tracing::debug!(%peer_id, "Peer attempted to reconnect too quickly, closing");
if let Err(e) = self.disconnect(peer_id).await {
tracing::error!(%e, "Failed to disconnect peer");
tracing::debug!(%e, "Failed to disconnect peer");
}
return;
} else {
Expand Down

0 comments on commit 29fe1d7

Please sign in to comment.