aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-06-25 15:23:31 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-06-25 15:23:31 -0500
commitab7ab29fc051886e4af08e39dded11e3cdf92bda (patch)
tree874b265b2ce04de6b9291f0f8623e5724437a3cd
parentMerge pull request #3972 (diff)
parentcryptonote_protocol_handler: log when dropping a peer (diff)
downloadmonero-ab7ab29fc051886e4af08e39dded11e3cdf92bda.tar.xz
Merge pull request #3974
1789b76 cryptonote_protocol_handler: log when dropping a peer (moneromooo-monero)
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.inl3
1 files changed, 3 insertions, 0 deletions
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<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);