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 <john.spray@redhat.com>
This commit is contained in:
John Spray 2016-08-04 15:01:30 +01:00
parent ea46778e36
commit e6de53aa60

View 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