From 2b07926b3c982e0cf6f152c4b08f55142ade525e Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Fri, 16 Aug 2019 09:44:56 -0500 Subject: [PATCH] #7766 - report peer address on close --- plugins/net_plugin/net_plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/net_plugin/net_plugin.cpp b/plugins/net_plugin/net_plugin.cpp index 8d5ddb2cc68..7be660bfa71 100644 --- a/plugins/net_plugin/net_plugin.cpp +++ b/plugins/net_plugin/net_plugin.cpp @@ -957,7 +957,8 @@ namespace eosio { self->sent_handshake_count = 0; self->node_id = fc::sha256(); my_impl->sync_master->sync_reset_lib_num( self->shared_from_this() ); - fc_dlog( logger, "closed, canceling wait on ${p}", ("p", self->peer_name()) ); // peer_name(), do not hold conn_mtx + fc_ilog( logger, "closing '${a}', ${p}", ("a", self->peer_address())("p", self->peer_name()) ); + fc_dlog( logger, "canceling wait on ${p}", ("p", self->peer_name()) ); // peer_name(), do not hold conn_mtx self->cancel_wait(); { std::lock_guard g( self->read_delay_timer_mtx );