Skip to content

Commit

Permalink
chore(iroh-net): demote 'pong not received in timeout' message to deb…
Browse files Browse the repository at this point in the history
…ug (#1769)

These happen whenever any address of a node you've been pinging goes
offline, which creates a lot of noise.
  • Loading branch information
b5 committed Nov 4, 2023
1 parent 215953f commit 56e92ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions iroh-net/src/magicsock/peer_map/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,7 @@ impl Endpoint {
#[instrument("disco", skip_all, fields(peer = %self.public_key.fmt_short()))]
pub(super) fn ping_timeout(&mut self, txid: stun::TransactionId) {
if let Some(sp) = self.sent_ping.remove(&txid) {
// TODO: not warn?
warn!(tx = %hex::encode(txid), addr = %sp.to, "pong not received in timeout");
debug!(tx = %hex::encode(txid), addr = %sp.to, "pong not received in timeout");
match sp.to {
SendAddr::Udp(addr) => {
if let Some(ep_state) = self.direct_addr_state.get_mut(&addr.into()) {
Expand Down

0 comments on commit 56e92ca

Please sign in to comment.