notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 267b854953997b157543583ecb536dea33c7fd9c
parent 155278dd3fca730faa2e4b153fe959cf03844fe9
Author: William Casarin <jb55@jb55.com>
Date:   Tue,  4 Nov 2025 12:24:20 -0800

net: switch ping/pong messages to trace

they are annoying even on debug

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mcrates/enostr/src/relay/pool.rs | 9+++------
1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/crates/enostr/src/relay/pool.rs b/crates/enostr/src/relay/pool.rs @@ -7,11 +7,8 @@ use std::time::{Duration, Instant}; use url::Url; -#[cfg(not(target_arch = "wasm32"))] use ewebsock::{WsEvent, WsMessage}; - -#[cfg(not(target_arch = "wasm32"))] -use tracing::{debug, error}; +use tracing::{debug, trace, error}; use super::subs_debug::SubsDebug; @@ -257,7 +254,7 @@ impl RelayPool { let should_ping = now - relay.last_ping > self.ping_rate; if should_ping { - debug!("pinging {}", relay.relay.url); + trace!("pinging {}", relay.relay.url); relay.relay.ping(); relay.last_ping = Instant::now(); } @@ -382,7 +379,7 @@ impl RelayPool { // We only need to do this natively. #[cfg(not(target_arch = "wasm32"))] if let WsMessage::Ping(ref bs) = ev { - debug!("pong {}", relay.url()); + trace!("pong {}", relay.url()); match relay { PoolRelay::Websocket(wsr) => { wsr.relay.sender.send(WsMessage::Pong(bs.to_owned()));