diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-10-15 05:10:15 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-10-15 05:10:15 -0400 |
commit | 957ef7c1efc4365b138c0d6cb2fa1d73c7a0d710 (patch) | |
tree | 879b45aeaf2300e38ec6bf605d0d908c5302608c | |
parent | a05b0bc013201a23e564dfcc64e79e178c771e8a (diff) | |
download | teleterm-957ef7c1efc4365b138c0d6cb2fa1d73c7a0d710.tar.gz teleterm-957ef7c1efc4365b138c0d6cb2fa1d73c7a0d710.zip |
add client message logging too
-rw-r--r-- | src/client.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client.rs b/src/client.rs index be58347..7b4aa6f 100644 --- a/src/client.rs +++ b/src/client.rs @@ -259,6 +259,8 @@ impl<S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Send + 'static> &mut self, msg: crate::protocol::Message, ) -> Result<crate::component_future::Poll<Event>> { + msg.log("recv"); + match msg { crate::protocol::Message::LoggedIn { .. } => { for msg in &self.on_login { @@ -389,6 +391,7 @@ impl<S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Send + 'static> WriteSocket::NotConnected, ) { let msg = self.to_send.pop_front().unwrap(); + msg.log("send"); let fut = msg.write_async(s); self.wsock = WriteSocket::WritingMessage(Box::new(fut)); } else { |