From 1789b76b5d257a8c3e316b758222edf6745af225 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 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 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);