From 01d81db617f0122502c397bdb59dc0783735ff22 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Sun, 21 Aug 2022 09:11:38 -0700 Subject: [PATCH] improvement: log client id for subscription removal --- src/conn.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/conn.rs b/src/conn.rs index 1ab643b..40162ac 100644 --- a/src/conn.rs +++ b/src/conn.rs @@ -95,8 +95,9 @@ impl ClientConn { // TODO: return notice if subscription did not exist. self.subscriptions.remove(&c.id); debug!( - "removed subscription, currently have {} active subs", - self.subscriptions.len() + "removed subscription, currently have {} active subs (cid={})", + self.subscriptions.len(), + self.client_id ); } }