]> 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>
Tue, 8 Apr 2025 20:00:38 +0000 (01:30 +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 18017107b39e6bec3b749f8efe6f5f06bb31dcb2..f5c51a34b47bef16dcc077d86cc266c8068870cc 100644 (file)
@@ -1366,6 +1366,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!";