Skip to content

Commit

Permalink
fix(log): demote some WARN logs to DEBUG to reduce noises (#5029)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanabi1224 authored Dec 3, 2024
1 parent 180e57c commit 816fa80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/libp2p/hello/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl NetworkBehaviour for HelloBehaviour {
{
self.pending_inbound_hello_peers.remove(&peer_to_disconnect);
if !self.peer_manager.is_peer_protected(&peer_to_disconnect) {
tracing::warn!(peer=%peer_to_disconnect, "Disconnecting peer for not receiving hello in 30s");
tracing::debug!(peer=%peer_to_disconnect, "Disconnecting peer for not receiving hello in 30s");
return Poll::Ready(ToSwarm::CloseConnection {
peer_id: peer_to_disconnect,
connection: CloseConnection::All,
Expand Down
6 changes: 3 additions & 3 deletions src/libp2p_bitswap/request_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ impl BitswapRequestManager {

if let Some(responder) = responder {
if let Err(e) = responder.send_async(success).await {
warn!("{e}");
debug!("{e}");
}
}

Expand Down Expand Up @@ -198,7 +198,7 @@ impl BitswapRequestManager {

for peer in selected_peers {
if let Err(e) = self.outbound_have_request_tx.send((peer, cid)) {
warn!("{e}");
debug!("{e}");
}
}

Expand Down Expand Up @@ -292,7 +292,7 @@ impl BitswapRequestManager {
// node no longer wants those blocks.
for &peer in self.peers.read().iter() {
if let Err(e) = self.outbound_cancel_request_tx.send((peer, cid)) {
warn!("{e}");
debug!("{e}");
}
}
} else {
Expand Down

0 comments on commit 816fa80

Please sign in to comment.