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