From ae3bb60c697225789dc7abbead36ffddd61a321e Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Fri, 19 Mar 2021 14:41:58 -0700 Subject: [PATCH] mgr: add debug output for commands dispatched Signed-off-by: Patrick Donnelly (cherry picked from commit bb56c30167bed615db86aff5290550a887b3731a) --- src/mgr/DaemonServer.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mgr/DaemonServer.cc b/src/mgr/DaemonServer.cc index fadc7efb1e3ee..1371a8729ec01 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; } -- 2.39.5