diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-05-01 16:21:43 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-06-09 19:27:21 +0100 |
commit | 1789b76b5d257a8c3e316b758222edf6745af225 (patch) | |
tree | 80381b28c35c07460eff35c08f29c7cb53a4f3a5 /src | |
parent | Merge pull request #3340 (diff) | |
download | monero-1789b76b5d257a8c3e316b758222edf6745af225.tar.xz |
cryptonote_protocol_handler: log when dropping a peer
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.inl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index 2e1df8078..dd34e461e 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -1712,6 +1712,9 @@ skip: template<class t_core> void t_cryptonote_protocol_handler<t_core>::drop_connection(cryptonote_connection_context &context, bool add_fail, bool flush_all_spans) { + LOG_DEBUG_CC(context, "dropping connection id " << context.m_connection_id << + ", add_fail " << add_fail << ", flush_all_spans " << flush_all_spans); + if (add_fail) m_p2p->add_host_fail(context.m_remote_address); |