From: John Spray Date: Thu, 4 Aug 2016 14:01:30 +0000 (+0100) Subject: pybind/mgr: fix logging X-Git-Tag: v11.0.1~60^2~26 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e6de53aa6018d6fec9e40c88e2a9fa69ed63d54c;p=ceph-ci.git pybind/mgr: fix logging Previously only the errors were getting through, because other stuff was getting held up in the python logging framework. Signed-off-by: John Spray --- diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index 19e135c6824..3aee169d994 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -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