add log to disconnect_inner

This commit is contained in:
griffi-gh 2023-02-13 02:03:09 +01:00
parent 1b476819d8
commit ed721ea91c

View file

@ -99,6 +99,7 @@ impl<S, R> Client<S, R> where S: Message, R: Message {
} }
fn disconnect_inner(&mut self, reason: DisconnectReason, silent: bool) -> Result<()> { fn disconnect_inner(&mut self, reason: DisconnectReason, silent: bool) -> Result<()> {
log::info!("client disconnected because {reason:?}");
if !silent { if !silent {
self.send_raw_packet(ClientPacket::Disconnect)?; self.send_raw_packet(ClientPacket::Disconnect)?;
} }