Make the log work when deploy Zaqar with uwsgi
The zaqar-wsgi runs under uwsgi by devstack can't print any WARNING, DEBUG, ERROR or INFO log now. This path add the log initialization for uwsgi boot. Change-Id: Ifcd6be908442275d2acbde2562e593b2ca87b277 Cloese-bug: #1645492
This commit is contained in:
parent
73eab55b3b
commit
dfaa49b31e
@ -27,12 +27,15 @@ to the WSGI app when it is called from other apps.
|
||||
"""
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
|
||||
from zaqar import bootstrap
|
||||
|
||||
# Use the global CONF instance
|
||||
conf = cfg.CONF
|
||||
log.register_options(conf)
|
||||
conf(project='zaqar', prog='zaqar-queues', args=[])
|
||||
log.setup(conf, 'zaqar')
|
||||
|
||||
boot = bootstrap.Bootstrap(conf)
|
||||
conf.drivers.transport = 'wsgi'
|
||||
|
Loading…
Reference in New Issue
Block a user