From d5c0db1b4c02798b35ed9baa25af63e81c73cedf Mon Sep 17 00:00:00 2001 From: parazyd Date: Wed, 20 Oct 2021 19:12:47 +0200 Subject: [PATCH] net/channel: Prettyprint peer address. --- src/net/channel.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/channel.rs b/src/net/channel.rs index c9c176301..fffd95567 100644 --- a/src/net/channel.rs +++ b/src/net/channel.rs @@ -215,12 +215,12 @@ impl Channel { Ok(packet) => packet, Err(err) => { if Self::is_eof_error(err.clone()) { - info!("Channel {} disconnected", self.address()); + info!("Channel {:?} disconnected", self.address()); } else { error!("Read error on channel: {}", err); } debug!(target: "net", - "Channel::receive_loop() stopping channel {}", + "Channel::receive_loop() stopping channel {:?}", self.address() ); self.stop().await;