From: Steven Hardy Date: Mon, 25 Feb 2013 10:36:13 +0000 (+0000) Subject: heat : Only set qpid loglevel when rpc_backend specifies qpid X-Git-Tag: 2014.1~859^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=fe4955b49ef8c59ac00afb132070f2149853f23d;p=openstack-build%2Fheat-build.git heat : Only set qpid loglevel when rpc_backend specifies qpid fixes bug 1132709 Change-Id: Iefad8be07ab806b17f04ff536af955dc015ee4be --- diff --git a/heat/common/config.py b/heat/common/config.py index 4abf9a01..183d64c3 100644 --- a/heat/common/config.py +++ b/heat/common/config.py @@ -150,8 +150,10 @@ def setup_logging(): else: root_logger.setLevel(logging.WARNING) - # quiet down the qpid logging - root_logger.manager.getLogger('qpid.messaging').setLevel(logging.INFO) + # quiet down the qpid logging, without this qpid dumps raw hex stuff + # into our logs, which is generally too low-level to be useful to us + if cfg.CONF.rpc_backend.split('.')[-1] == 'impl_qpid': + root_logger.manager.getLogger('qpid.messaging').setLevel(logging.INFO) formatter = logging.Formatter(cfg.CONF.log_format, cfg.CONF.log_date_format)