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:
Steven Hardy 2012-12-19 18:01:15 +00:00
parent c4777794e7
commit 58a1fde200
1 changed files with 1 additions and 1 deletions

View File

@ -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)