net/channel: Prettyprint peer address.

This commit is contained in:
parazyd
2021-10-20 19:12:47 +02:00
parent 32888651bc
commit d5c0db1b4c

View File

@@ -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;