Просмотр исходного кода

net/channel: Prettyprint peer address.

parazyd 4 лет назад
Родитель
Сommit
d5c0db1b4c
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/net/channel.rs

+ 2 - 2
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;