Always reset CONF when starting the wsgi app
This ensures that options loaded during any prior run of the application are dropped before being added again during init_application. Change-Id: I4267071cdfcb6319ed02e355a9c761fce58e5383
This commit is contained in:
parent
ea0aa97f21
commit
aef32ef246
|
@ -74,6 +74,9 @@ def fail(e):
|
|||
|
||||
|
||||
def configure_wsgi():
|
||||
# NOTE(hberaud): Call reset to ensure the ConfigOpts object doesn't
|
||||
# already contain registered options if the app is reloaded.
|
||||
CONF.reset()
|
||||
config.parse_args()
|
||||
config.set_config_defaults()
|
||||
logging.setup(CONF, 'searchlight')
|
||||
|
|
Loading…
Reference in New Issue