From: Sage Weil Date: Mon, 30 Apr 2018 21:09:43 +0000 (-0500) Subject: mon/MgrStatMonitor: dump mgr health checks to debug log X-Git-Tag: v13.1.0~5^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a2cfc0bfcda1655cddc8c00d2ca122fb58fe2cbe;p=ceph.git mon/MgrStatMonitor: dump mgr health checks to debug log Signed-off-by: Sage Weil --- diff --git a/src/mon/MgrStatMonitor.cc b/src/mon/MgrStatMonitor.cc index 18b8bd5e24aa..9db8ac4e8699 100644 --- a/src/mon/MgrStatMonitor.cc +++ b/src/mon/MgrStatMonitor.cc @@ -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; }