From: Steven Hardy Date: Wed, 19 Dec 2012 18:01:15 +0000 (+0000) Subject: Avoid logging.getChild for python2.6 compatibility X-Git-Tag: 2014.1~1049^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=58a1fde2000d998f126eaefcd279c5769cd765a7;p=openstack-build%2Fheat-build.git 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 --- diff --git a/heat/common/config.py b/heat/common/config.py index 16cf488a..3209e8ce 100644 --- a/heat/common/config.py +++ b/heat/common/config.py @@ -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)