Skip to content

Commit

Permalink
fix: use debug for peer dial failures
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielc committed Dec 10, 2024
1 parent 0321da0 commit 1e4c0b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions p2p/src/behaviour/ceramic_peer_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use tokio::{
sync::{mpsc::Sender, oneshot},
time,
};
use tracing::{info, warn};
use tracing::{debug, info, warn};

use crate::{
metrics::{self, Metrics},
Expand Down Expand Up @@ -164,7 +164,9 @@ impl CeramicPeerManager {

fn handle_dial_failure(&mut self, peer_id: &PeerId) {
if let Some(peer) = self.ceramic_peers.get_mut(peer_id) {
warn!(
// Nodes discover each other, its common for peers to be unaccessible,
// use debug to inform operators of this failure.
debug!(
%peer_id,
multiaddr = ?peer.addrs,
"dial failed, redial ceramic peer"
Expand Down

0 comments on commit 1e4c0b8

Please sign in to comment.