Merge "Add debug flag in the config"

This commit is contained in:
Jenkins 2016-01-06 13:05:12 +00:00 committed by Gerrit Code Review
commit 4461b6d176
3 changed files with 6 additions and 2 deletions

View File

@ -46,7 +46,9 @@ core_opts = [
help=_('The default neutron local address-scope name')),
cfg.StrOpt('global_default_address_space',
default='global_scope',
help=_('The default neutron global address-scope name.'))
help=_('The default neutron global address-scope name.')),
cfg.BoolOpt('debug', default=True,
help=_('Enable or Disable debug mode for kuryr server.'))
]
neutron_opts = [
cfg.StrOpt('neutron_uri',

View File

@ -21,5 +21,5 @@ def start():
from kuryr import app
from kuryr import controllers
controllers.check_for_neutron_ext_support()
app.debug = True
app.debug = config.CONF.debug
app.run("0.0.0.0", port)

View File

@ -32,6 +32,8 @@ class ConfigurationTest(base.TestKuryrBase):
self.assertEqual('http://127.0.0.1:2377',
config.CONF.kuryr_uri)
self.assertEqual(True, config.CONF.debug)
self.assertEqual('http://127.0.0.1:9696',
config.CONF.neutron_client.neutron_uri)