aboutsummaryrefslogtreecommitdiff
path: root/src/client.rs
diff options
context:
space:
mode:
authorTill Hoeppner2015-06-28 19:37:50 +0200
committerTill Hoeppner2015-06-28 19:37:50 +0200
commit5c981f51f8cd1ddfa5a47a749da5798deee5c434 (patch)
tree35b32e27b35abc483ebff242b6ea4143fff366d5 /src/client.rs
parent100db832f2cb1f869929032103309c64d0f6e231 (diff)
downloadirsc-5c981f51f8cd1ddfa5a47a749da5798deee5c434.tar.gz
irsc-5c981f51f8cd1ddfa5a47a749da5798deee5c434.tar.xz
irsc-5c981f51f8cd1ddfa5a47a749da5798deee5c434.zip
Move IO logging into client.rs
Diffstat (limited to 'src/client.rs')
-rw-r--r--src/client.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/client.rs b/src/client.rs
index d3a8542..339415b 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -157,8 +157,9 @@ impl OwnedClient {
None => return Result(Err(IrscError::NotConnected))
});
- for line in reader.lines() {
- let line = line.unwrap().parse();
+ for raw_line in reader.lines() {
+ let line = raw_line.as_ref().unwrap().parse();
+ info!("<< {}", raw_line.unwrap());
if let Ok(msg) = line {
self.handle_event(&msg);
@@ -187,8 +188,9 @@ impl OwnedClient {
None => return Result(Err(IrscError::NotConnected))
});
- for line in reader.lines() {
- let line = line.unwrap().parse();
+ for raw_line in reader.lines() {
+ let line = raw_line.as_ref().unwrap().parse();
+ info!("<< {}", raw_line.unwrap());
if let Ok(msg) = line {
s.handle_event(&msg);