From 95614fad55233d22398621ba4dddeb4b1ff129a6 Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Wed, 21 Feb 2024 09:47:36 +1300 Subject: [PATCH] Bring back logging of the errors that cause CLOSED --- src/nostr.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nostr.rs b/src/nostr.rs index 306d71d..cdc2118 100644 --- a/src/nostr.rs +++ b/src/nostr.rs @@ -79,6 +79,7 @@ impl WebSocketService { } if let Err(e) = self.req_inner(&subid, filters).await { + log::error!("{}: {e}", self.peer); let reply = match e.inner { ChorusError::TooManySubscriptions => { let max_subscriptions = GLOBALS.config.get().unwrap().max_subscriptions; @@ -156,7 +157,7 @@ impl WebSocketService { self.subscriptions.insert(subid.to_owned(), filters); log::debug!( - "{}, new subscription \"{subid}\", {} total", + "{}: new subscription \"{subid}\", {} total", self.peer, self.subscriptions.len() );