cryptonote_protocol_handler: log when dropping a peer

This commit is contained in:
moneromooo-monero 2018-05-01 16:21:43 +01:00 committed by wowario
parent 1959297a1e
commit 5a0de0115d
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111
1 changed files with 3 additions and 0 deletions

View File

@ -1714,6 +1714,9 @@ skip:
template<class t_core> template<class t_core>
void t_cryptonote_protocol_handler<t_core>::drop_connection(cryptonote_connection_context &context, bool add_fail, bool flush_all_spans) 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) if (add_fail)
m_p2p->add_host_fail(context.m_remote_address); m_p2p->add_host_fail(context.m_remote_address);