Merge "Make the log work when deploy Zaqar with uwsgi"

This commit is contained in:
Jenkins 2017-01-16 16:31:25 +00:00 committed by Gerrit Code Review
commit f8e0d803cc

View File

@ -27,12 +27,15 @@ to the WSGI app when it is called from other apps.
""" """
from oslo_config import cfg from oslo_config import cfg
from oslo_log import log
from zaqar import bootstrap from zaqar import bootstrap
# Use the global CONF instance # Use the global CONF instance
conf = cfg.CONF conf = cfg.CONF
log.register_options(conf)
conf(project='zaqar', prog='zaqar-queues', args=[]) conf(project='zaqar', prog='zaqar-queues', args=[])
log.setup(conf, 'zaqar')
boot = bootstrap.Bootstrap(conf) boot = bootstrap.Bootstrap(conf)
conf.drivers.transport = 'wsgi' conf.drivers.transport = 'wsgi'