Merge pull request #3974

1789b76 cryptonote_protocol_handler: log when dropping a peer (moneromooo-monero)
This commit is contained in:
luigi1111 2018-06-25 15:23:31 -05:00
commit ab7ab29fc0
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -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);