aboutsummaryrefslogtreecommitdiff
path: root/src
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 /src
parentc0c6102260a4f623218ee34286dd7bf4240c7609 (diff)
parent1789b76b5d257a8c3e316b758222edf6745af225 (diff)
downloadmonzero-core-ab7ab29fc051886e4af08e39dded11e3cdf92bda.tar.gz
monzero-core-ab7ab29fc051886e4af08e39dded11e3cdf92bda.tar.xz
monzero-core-ab7ab29fc051886e4af08e39dded11e3cdf92bda.zip
Merge pull request #3974
1789b76 cryptonote_protocol_handler: log when dropping a peer (moneromooo-monero)
Diffstat (limited to 'src')
-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);