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

net: add the channel address to error log when the channel disconnect

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

+ 2 - 2
src/net/channel.rs

@@ -286,10 +286,10 @@ impl Channel {
                     if Self::is_eof_error(err.clone()) {
                         info!("Inbound connection {} disconnected", self.address());
                     } else {
-                        error!("Read error on channel: {}", err);
+                        error!("Read error on channel {}: {}", self.address(), err);
                     }
                     debug!(target: "net",
-                     "Channel::receive_loop() stopping channel {:?}",
+                     "Channel::receive_loop() stopping channel {}",
                      self.address()
                     );
                     self.stop().await;