Initialize osprofiler in WSGI application

This patch adds missing initialization of OSProfiler when
Nova API is running as WSGI application.

Change-Id: I779b144cfdfbe4a9a572990bad9720113402ac7f
Related-Bug: #1731864
This commit is contained in:
Ilya Shakhat 2017-11-14 13:41:50 +01:00
parent a4fc1bcd08
commit 0b4608bf0b
1 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,8 @@ def init_application(name):
except exception.ServiceTooOld as exc:
return error_application(exc, name)
service.setup_profiler(name, CONF.host)
conf = conf_files[0]
return deploy.loadapp('config:%s' % conf, name=name)