Merge "heat : Only set qpid loglevel when rpc_backend specifies qpid"

This commit is contained in:
Jenkins 2013-02-25 16:09:55 +00:00 committed by Gerrit Code Review
commit bb5404ae11
1 changed files with 4 additions and 2 deletions

View File

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