mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 11:08:51 +00:00
cryptonote_protocol_handler: log when dropping a peer
This commit is contained in:
parent
25e7a7d96f
commit
1789b76b5d
@ -1712,6 +1712,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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user