]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/DaemonServer.cc: log daemon type string as well as id 15560/head
authorDan Mick <dan.mick@redhat.com>
Thu, 8 Jun 2017 02:52:13 +0000 (19:52 -0700)
committerDan Mick <dan.mick@redhat.com>
Thu, 8 Jun 2017 02:52:13 +0000 (19:52 -0700)
Signed-off-by: Dan Mick <dan.mick@redhat.com>
src/mgr/DaemonServer.cc

index faa60a77659ce45d3fd223b4284167a5b1581ba2..a8ac275d7cecc9586c14316c71929870d92de319 100644 (file)
@@ -263,12 +263,11 @@ void DaemonServer::shutdown()
 
 bool DaemonServer::handle_open(MMgrOpen *m)
 {
-  DaemonKey key(
-      m->get_connection()->get_peer_type(),
-      m->daemon_name);
+  uint32_t type = m->get_connection()->get_peer_type();
+  DaemonKey key(type, m->daemon_name);
 
   dout(4) << "from " << m->get_connection() << " name "
-          << m->daemon_name << dendl;
+          << ceph_entity_type_name(type) << "." << m->daemon_name << dendl;
 
   auto configure = new MMgrConfigure();
   configure->stats_period = g_conf->mgr_stats_period;
@@ -285,12 +284,11 @@ bool DaemonServer::handle_open(MMgrOpen *m)
 
 bool DaemonServer::handle_report(MMgrReport *m)
 {
-  DaemonKey key(
-      m->get_connection()->get_peer_type(),
-      m->daemon_name);
+  uint32_t type = m->get_connection()->get_peer_type();
+  DaemonKey key(type, m->daemon_name);
 
   dout(4) << "from " << m->get_connection() << " name "
-          << m->daemon_name << dendl;
+          << ceph_entity_type_name(type) << "." << m->daemon_name << dendl;
 
   DaemonStatePtr daemon;
   if (daemon_state.exists(key)) {