From 58a1fde2000d998f126eaefcd279c5769cd765a7 Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Wed, 19 Dec 2012 18:01:15 +0000 Subject: [PATCH] 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 --- heat/common/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.45.2