Sync up the wsgi script of zun-api
* Setup the osprofiler as the zun-api script * Print all the configures at startup Change-Id: Ib5b918b8525f65e58c7c71b4e8d66af800a2ab86
This commit is contained in:
parent
315c12f06a
commit
555edc90f1
@ -16,9 +16,22 @@ See http://pecan.readthedocs.org/en/latest/deployment.html for details.
|
||||
|
||||
import sys
|
||||
|
||||
from zun.common import service
|
||||
from oslo_log import log
|
||||
|
||||
from zun.api import app
|
||||
from zun.common import profiler
|
||||
from zun.common import service
|
||||
import zun.conf
|
||||
|
||||
|
||||
CONF = zun.conf.CONF
|
||||
LOG = log.getLogger(__name__)
|
||||
|
||||
# Initialize the oslo configuration library and logging
|
||||
service.prepare_service(sys.argv)
|
||||
profiler.setup('zun-api', CONF.host)
|
||||
|
||||
LOG.debug("Configuration:")
|
||||
CONF.log_opt_values(LOG, log.DEBUG)
|
||||
|
||||
application = app.load_app()
|
||||
|
Loading…
Reference in New Issue
Block a user