From f5b3bb35606051ee1b8fcb0d2d460de280def40a Mon Sep 17 00:00:00 2001 From: Chang Liu Date: Thu, 21 Dec 2017 17:30:54 +0800 Subject: [PATCH] mgr/dashboard: logging when loads json failed Signed-off-by: Chang Liu --- src/pybind/mgr/dashboard/rgw.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pybind/mgr/dashboard/rgw.py b/src/pybind/mgr/dashboard/rgw.py index 98fd47d230d..37331c54ef9 100644 --- a/src/pybind/mgr/dashboard/rgw.py +++ b/src/pybind/mgr/dashboard/rgw.py @@ -7,6 +7,7 @@ import logging log = logging.getLogger("dashboard") + class RGWDaemons(RemoteViewCache): def _get(self): @@ -25,6 +26,7 @@ class RGWDaemons(RemoteViewCache): try: status = json.loads(status['json']) except: + log.warn("{0} had invalid status json".format(service['id'])) status = {} # extract per-daemon service data and health -- 2.39.5