Log connection errors

This commit is contained in:
Ignotus Peverell
2017-10-12 19:26:10 +00:00
parent 2222b28981
commit 361e39c87c
+2 -2
View File
@@ -102,9 +102,9 @@ impl Peer {
info!(LOGGER, "Client {} corrupted, ban.", addr);
Err(Error::Serialization(e))
}
Err(_) => {
Err(e) => {
*state = State::Disconnected;
info!(LOGGER, "Client {} connection lost.", addr);
info!(LOGGER, "Client {} connection lost: {:?}", addr, e);
Ok(())
}
}