]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
pybind/mgr: fix logging
authorJohn Spray <john.spray@redhat.com>
Thu, 4 Aug 2016 14:01:30 +0000 (15:01 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 29 Sep 2016 16:27:03 +0000 (17:27 +0100)
Previously only the errors were getting through, because
other stuff was getting held up in the python logging
framework.

Signed-off-by: John Spray <john.spray@redhat.com>
src/pybind/mgr/mgr_module.py

index 19e135c6824aff551ee3a0ff128f5fe0ffa2cd64..3aee169d994b3684dc067b17aed1544aa80f198b 100644 (file)
@@ -37,6 +37,9 @@ class MgrModule(object):
         self._handle = handle
         self._logger = logging.getLogger(handle)
 
+        # Don't filter any logs at the python level, leave it to C++
+        self._logger.setLevel(logging.DEBUG)
+
         # FIXME: we should learn the log level from C++ land, and then
         # avoid calling ceph_state.log when we know a message is of
         # an insufficient level to be ultimately output