Log connection errors

This commit is contained in:
Ignotus Peverell 2017-10-12 19:26:10 +00:00
parent 2222b28981
commit 361e39c87c
No known key found for this signature in database
GPG key ID: 99CD25F39F8F8211

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(())
}
}