]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MgrMontitor: add log entry to support debugging
authorRishabh Dave <ridave@redhat.com>
Thu, 8 Aug 2024 17:18:03 +0000 (22:48 +0530)
committerRishabh Dave <ridave@redhat.com>
Sat, 19 Oct 2024 11:25:59 +0000 (16:55 +0530)
It becomes easier to understand logs when whether command succeeded or
not are also logged.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/mon/MgrMonitor.cc

index 1960f8a2c0bf07e9918c83f1b750f3144c102faa..26262a1c393e3ababac2304e2d90dfc4ca7c5560 100644 (file)
@@ -1320,6 +1320,7 @@ bool MgrMonitor::prepare_command(MonOpRequestRef op)
     if (!pending_map.modules.count(module)) {
       ss << "module '" << module << "' is not enabled";
     }
+    dout(8) << __func__ << " disabling module " << module << " from new " << dendl;
     pending_map.modules.erase(module);
   } else {
     ss << "Command '" << prefix << "' not implemented!";