Merge "Make the log work when deploy Zaqar with uwsgi"
This commit is contained in:
commit
f8e0d803cc
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user