]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: logging when loads json failed
authorChang Liu <liuchang0812@gmail.com>
Thu, 21 Dec 2017 09:30:54 +0000 (17:30 +0800)
committerChang Liu <liuchang0812@gmail.com>
Thu, 21 Dec 2017 09:30:54 +0000 (17:30 +0800)
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
src/pybind/mgr/dashboard/rgw.py

index 98fd47d230db064f7f927ec65d0c79eae90002f7..37331c54ef9812df6ac67ab43078d35ad198cc99 100644 (file)
@@ -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