aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-05-01 16:21:43 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-06-09 19:27:21 +0100
commit1789b76b5d257a8c3e316b758222edf6745af225 (patch)
tree80381b28c35c07460eff35c08f29c7cb53a4f3a5 /src/cryptonote_protocol
parentMerge pull request #3340 (diff)
downloadmonero-1789b76b5d257a8c3e316b758222edf6745af225.tar.xz
cryptonote_protocol_handler: log when dropping a peer
Diffstat (limited to 'src/cryptonote_protocol')
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.inl3
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);