]> git-server-git.apps.pok.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>
Fri, 29 Nov 2024 13:38:38 +0000 (19:08 +0530)
It becomes easier to understand logs when whether command succeeded or
not are also logged.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 4374ac74d283ce1c50616330a0127a53623d96c3)

src/mon/MgrMonitor.cc

index c1a59657a2e2738419c39ab6ffb9689e6208866c..7a331c67e6f059b1c73b3e45bf4770b353906dc9 100644 (file)
@@ -1346,6 +1346,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!";