mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
Log connection errors
This commit is contained in:
parent
2222b28981
commit
361e39c87c
1 changed files with 2 additions and 2 deletions
|
@ -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(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue