]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr: improve debug message information
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 26 Nov 2019 20:20:26 +0000 (12:20 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 26 Nov 2019 21:05:44 +0000 (13:05 -0800)
Connection pointer is not helpful.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mgr/DaemonServer.cc

index 6d086179c2c6febd9df49889dd4f089e19482815..334bc96ab69089bf322504d4488af8b4f3ca6123 100644 (file)
@@ -391,9 +391,10 @@ bool DaemonServer::handle_open(const ref_t<MMgrOpen>& 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<MMgrOpen>& 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;