nostr-rs-relay

My dev fork of nostr-rs-relay
git clone git://jb55.com/nostr-rs-relay
Log | Files | Refs | README | LICENSE

commit 311f4b52831f27279cf8a67629b438a15faf78b3
parent 14b5a51e3a6786c358f8e559848f1759a9ddfc62
Author: William Casarin <jb55@jb55.com>
Date:   Thu,  3 Nov 2022 13:15:47 -0700

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>

Diffstat:
Msrc/server.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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