From 311f4b52831f27279cf8a67629b438a15faf78b3 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 3 Nov 2022 13:15:47 -0700 Subject: [PATCH] refactor: switch new connections to debug log These are pretty spammy on busy relays. I've been using the info log to monitor spam attacks, and these are the least useful info log. Leave the "stopping connection" log because it at least provides useful sent/received information. Signed-off-by: William Casarin --- src/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.rs b/src/server.rs index a116e17..5bddf66 100644 --- a/src/server.rs +++ b/src/server.rs @@ -428,7 +428,7 @@ async fn nostr_server( // and how many it received from queries. let mut client_published_event_count: usize = 0; let mut client_received_event_count: usize = 0; - info!("new connection for client: {:?}, ip: {:?}", cid, conn.ip()); + debug!("new connection for client: {:?}, ip: {:?}", cid, conn.ip()); loop { tokio::select! { _ = shutdown.recv() => {