From dfaa49b31e8abd10456761110d0cadc1b7c7640d Mon Sep 17 00:00:00 2001 From: wangxiyuan Date: Sat, 14 Jan 2017 15:33:59 +0800 Subject: [PATCH] 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 --- zaqar/transport/wsgi/app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zaqar/transport/wsgi/app.py b/zaqar/transport/wsgi/app.py index 6cd41864b..c2d3b26ad 100644 --- a/zaqar/transport/wsgi/app.py +++ b/zaqar/transport/wsgi/app.py @@ -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'