From a2cfc0bfcda1655cddc8c00d2ca122fb58fe2cbe Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 30 Apr 2018 16:09:43 -0500 Subject: [PATCH] mon/MgrStatMonitor: dump mgr health checks to debug log Signed-off-by: Sage Weil --- src/mon/MgrStatMonitor.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mon/MgrStatMonitor.cc b/src/mon/MgrStatMonitor.cc index 18b8bd5e24a..9db8ac4e869 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; } -- 2.47.3