add log to disconnect_inner

This commit is contained in:
griffi-gh 2023-02-13 02:03:09 +01:00
parent f19683c1b1
commit 32963044f3

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<()> {
log::info!("client disconnected because {reason:?}");
if !silent {
self.send_raw_packet(ClientPacket::Disconnect)?;
}