]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/devicehealth: fix exceptions 23611/head
authorSage Weil <sage@redhat.com>
Sun, 26 Aug 2018 20:27:32 +0000 (15:27 -0500)
committerSage Weil <sage@redhat.com>
Wed, 29 Aug 2018 17:30:24 +0000 (12:30 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/devicehealth/module.py

index f5e4522f9b85bc0cc80059bed193cd09e883c58b..298a37cb4762762164a722244da15723889a1fbc 100644 (file)
@@ -345,7 +345,7 @@ class Module(MgrModule):
         except rados.Error as e:
             # Do not proceed with writes if something unexpected
             # went wrong with the reads.
-            log.exception("Error reading OMAP: {0}".format(e))
+            self.log.exception("Error reading OMAP: {0}".format(e))
             return
 
         key = datetime.utcnow().strftime(TIME_FORMAT)
@@ -384,7 +384,7 @@ class Module(MgrModule):
             except rados.ObjectNotFound:
                 pass
             except rados.Error as e:
-                log.exception("RADOS error reading omap: {0}".format(e))
+                self.log.exception("RADOS error reading omap: {0}".format(e))
                 raise
 
         return 0, json.dumps(res, indent=4), ''