From 3f32ff67ab2e438ad6dd7e7935411dfe1ba2aae3 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Sat, 17 Dec 2022 23:11:14 -0600 Subject: [PATCH] improvement: minor logging --- src/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.rs b/src/server.rs index f94aece..5309669 100644 --- a/src/server.rs +++ b/src/server.rs @@ -638,12 +638,12 @@ async fn nostr_server( db::db_query(s, cid.to_owned(), pool.clone(), query_tx.clone(), abandon_query_rx).await; }, Err(e) => { - info!("Subscription error: {}", e); + info!("Subscription error: {} (cid: {}, sub: {:?})", e, cid, s.id); ws_stream.send(make_notice_message(Notice::message(format!("Subscription error: {}", e)))).await.ok(); } } } else { - info!("client send duplicate subscription, ignoring (cid: {}, sub: {:?})", cid, s.id); + info!("client sent duplicate subscription, ignoring (cid: {}, sub: {:?})", cid, s.id); } }, Ok(NostrMessage::CloseMsg(cc)) => {