From: Patrick Donnelly Date: Fri, 19 Mar 2021 21:41:58 +0000 (-0700) Subject: mgr: add debug output for commands dispatched X-Git-Tag: v14.2.22~34^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b94faf5b63fb0c221af0da111315677fdee17cba;p=ceph.git mgr: add debug output for commands dispatched Signed-off-by: Patrick Donnelly (cherry picked from commit bb56c30167bed615db86aff5290550a887b3731a) Conflicts: src/mgr/DaemonServer.cc --- diff --git a/src/mgr/DaemonServer.cc b/src/mgr/DaemonServer.cc index 7fc74199a053..7fe6c7dd5efa 100644 --- a/src/mgr/DaemonServer.cc +++ b/src/mgr/DaemonServer.cc @@ -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; }