From e6de53aa6018d6fec9e40c88e2a9fa69ed63d54c Mon Sep 17 00:00:00 2001 From: John Spray Date: Thu, 4 Aug 2016 15:01:30 +0100 Subject: [PATCH] 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 --- src/pybind/mgr/mgr_module.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index 19e135c6824af..3aee169d994b3 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 -- 2.39.5