]> 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)
committerVenky Shankar <vshankar@redhat.com>
Wed, 26 May 2021 13:43:41 +0000 (09:43 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit bb56c30167bed615db86aff5290550a887b3731a)

Conflicts:
src/mgr/DaemonServer.cc

src/mgr/DaemonServer.cc

index 7fc74199a053983b1dfb78424fe6317a3f464c69..7fe6c7dd5efa28c58d38e77cbb5072f17db86ade 100644 (file)
@@ -2358,11 +2358,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 FunctionContext([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);
@@ -2418,6 +2420,7 @@ bool DaemonServer::_handle_command(
 
     cmdctx->odata.append(ds);
     cmdctx->reply(r, ss);
+    dout(10) << " command returned " << r << dendl;
   }));
   return true;
 }