]> git-server-git.apps.pok.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>
Wed, 24 Mar 2021 18:37:24 +0000 (11:37 -0700)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mgr/DaemonServer.cc

index 64edc8bdfb7c23f1b13ecd90b9a5160c9f3ad836..ea41ba05887099fafa470117716b82f18d2443c9 100644 (file)
@@ -2396,11 +2396,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);
@@ -2456,6 +2458,7 @@ bool DaemonServer::_handle_command(
 
     cmdctx->odata.append(ds);
     cmdctx->reply(r, ss);
+    dout(10) << " command returned " << r << dendl;
   }));
   return true;
 }