]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: add debug output for commands dispatched
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 19 Mar 2021 21:41:58 +0000 (14:41 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 22 Apr 2021 16:17:41 +0000 (09:17 -0700)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit bb56c30167bed615db86aff5290550a887b3731a)

src/mgr/DaemonServer.cc

index fadc7efb1e3eee3f1c42644b3e2ebe23a04e3118..1371a8729ec01a15477d9130646b5db3f3992363 100644 (file)
@@ -2403,11 +2403,13 @@ bool DaemonServer::_handle_command(
     return true;
   }
 
-  dout(10) << "passing through " << cmdctx->cmdmap.size() << dendl;
+  dout(10) << "passing through command '" << prefix << "' size " << cmdctx->cmdmap.size() << dendl;
   finisher.queue(new LambdaContext([this, cmdctx, session, py_command, prefix]
                                    (int r_) mutable {
     std::stringstream ss;
 
+    dout(10) << "dispatching command '" << prefix << "' size " << cmdctx->cmdmap.size() << dendl;
+
     // Validate that the module is enabled
     auto& py_handler_name = py_command.module_name;
     PyModuleRef module = py_modules.get_module(py_handler_name);
@@ -2463,6 +2465,7 @@ bool DaemonServer::_handle_command(
 
     cmdctx->odata.append(ds);
     cmdctx->reply(r, ss);
+    dout(10) << " command returned " << r << dendl;
   }));
   return true;
 }