]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MgrStatMonitor: dump mgr health checks to debug log
authorSage Weil <sage@redhat.com>
Mon, 30 Apr 2018 21:09:43 +0000 (16:09 -0500)
committerSage Weil <sage@redhat.com>
Tue, 1 May 2018 18:54:28 +0000 (13:54 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MgrStatMonitor.cc

index 18b8bd5e24aadac67695f2ca545602f2b2e64311..9db8ac4e8699739138d9aceb26f13ce76e4052cb 100644 (file)
@@ -198,6 +198,13 @@ bool MgrStatMonitor::prepare_report(MonOpRequestRef op)
   jf.close_section();
   jf.flush(*_dout);
   *_dout << dendl;
+  dout(20) << "health checks:\n";
+  JSONFormatter jf(true);
+  jf.open_object_section("health_checks");
+  pending_health_checks.dump(&jf);
+  jf.close_section();
+  jf.flush(*_dout);
+  *_dout << dendl;
   return true;
 }