Avoid logging.getChild for python2.6 compatibility
Tweaking common.config setup_logging to avoid using the getChild() convenience function means we can run on python 2.6, as getChild was new in python 2.7 Change-Id: I03698ad09eb16d4f1004512d27b049f22b41c22c Signed-off-by: Steven Hardy <shardy@redhat.com>
This commit is contained in:
parent
c4777794e7
commit
58a1fde200
@ -145,7 +145,7 @@ def setup_logging():
|
||||
root_logger.setLevel(logging.WARNING)
|
||||
|
||||
# quiet down the qpid logging
|
||||
root_logger.getChild('qpid.messaging').setLevel(logging.INFO)
|
||||
root_logger.manager.getLogger('qpid.messaging').setLevel(logging.INFO)
|
||||
|
||||
formatter = logging.Formatter(cfg.CONF.log_format,
|
||||
cfg.CONF.log_date_format)
|
||||
|
Loading…
Reference in New Issue
Block a user