From: Patrick Donnelly Date: Tue, 26 Nov 2019 20:20:26 +0000 (-0800) Subject: mgr: improve debug message information X-Git-Tag: v15.1.0~736^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9b71bbee55e16e8b81d896b46bab60ff8aa36271;p=ceph-ci.git mgr: improve debug message information Connection pointer is not helpful. Signed-off-by: Patrick Donnelly --- diff --git a/src/mgr/DaemonServer.cc b/src/mgr/DaemonServer.cc index 6d086179c2c..334bc96ab69 100644 --- a/src/mgr/DaemonServer.cc +++ b/src/mgr/DaemonServer.cc @@ -391,9 +391,10 @@ bool DaemonServer::handle_open(const ref_t& m) m->get_connection()->get_peer_type(), m->daemon_name); - dout(10) << "from " << m->get_connection() << " " << key << dendl; + auto con = m->get_connection(); + dout(10) << "from " << key << " " << con->get_peer_addr() << dendl; - _send_configure(m->get_connection()); + _send_configure(con); DaemonStatePtr daemon; if (daemon_state.exists(key)) { @@ -443,13 +444,13 @@ bool DaemonServer::handle_open(const ref_t& m) << " bytes" << dendl; } - if (m->get_connection()->get_peer_type() != entity_name_t::TYPE_CLIENT && + if (con->get_peer_type() != entity_name_t::TYPE_CLIENT && m->service_name.empty()) { // Store in set of the daemon/service connections, i.e. those // connections that require an update in the event of stats // configuration changes. - daemon_connections.insert(m->get_connection()); + daemon_connections.insert(con); } return true;