From 5a0de0115d0a13c2562bfdfd9f7ece916b2ef8c5 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Tue, 1 May 2018 16:21:43 +0100 Subject: [PATCH] cryptonote_protocol_handler: log when dropping a peer --- src/cryptonote_protocol/cryptonote_protocol_handler.inl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index 01c383cc4..6e7240b57 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -1714,6 +1714,9 @@ skip: template void t_cryptonote_protocol_handler::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);