From ed721ea91ca0bf1ba37ec1474bd35a10da5fb5e7 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Mon, 13 Feb 2023 02:03:09 +0100 Subject: [PATCH] add log to `disconnect_inner` --- kubi-udp/src/client.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/kubi-udp/src/client.rs b/kubi-udp/src/client.rs index cb411b1..49cdde8 100644 --- a/kubi-udp/src/client.rs +++ b/kubi-udp/src/client.rs @@ -99,6 +99,7 @@ impl Client where S: Message, R: Message { } fn disconnect_inner(&mut self, reason: DisconnectReason, silent: bool) -> Result<()> { + log::info!("client disconnected because {reason:?}"); if !silent { self.send_raw_packet(ClientPacket::Disconnect)?; }