From: Chang Liu Date: Thu, 21 Dec 2017 09:30:54 +0000 (+0800) Subject: mgr/dashboard: logging when loads json failed X-Git-Tag: v13.0.2~667^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f5b3bb35606051ee1b8fcb0d2d460de280def40a;p=ceph.git mgr/dashboard: logging when loads json failed Signed-off-by: Chang Liu --- diff --git a/src/pybind/mgr/dashboard/rgw.py b/src/pybind/mgr/dashboard/rgw.py index 98fd47d230db..37331c54ef98 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