From 361e39c87c96ce3c02510d2c27b15ccc4f7fe1b6 Mon Sep 17 00:00:00 2001 From: Ignotus Peverell Date: Thu, 12 Oct 2017 19:26:10 +0000 Subject: [PATCH] Log connection errors --- p2p/src/peer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p/src/peer.rs b/p2p/src/peer.rs index 084573444..a14cc15a7 100644 --- a/p2p/src/peer.rs +++ b/p2p/src/peer.rs @@ -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(()) } }