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 <jb55@jb55.com>
This commit is contained in:
William Casarin 2022-11-03 13:15:47 -07:00 committed by Greg Heartsfield
parent 14b5a51e3a
commit 311f4b5283

View File

@ -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() => {