Merge "Make OVSDB debug logging optional"

This commit is contained in:
Zuul 2018-05-15 17:43:44 +00:00 committed by Gerrit Code Review
commit 6b594d86ba
2 changed files with 5 additions and 1 deletions

View File

@ -82,7 +82,8 @@ class OvsCleanup(command.BaseCommand):
class NeutronOvsdbIdl(impl_idl.OvsdbIdl):
def __init__(self, connection):
vlog.use_python_logger()
max_level = None if cfg.CONF.OVS.ovsdb_debug else vlog.INFO
vlog.use_python_logger(max_level=max_level)
super(NeutronOvsdbIdl, self).__init__(connection)
def ovs_cleanup(self, bridges, all_ports=False):

View File

@ -51,6 +51,9 @@ API_OPTS = [
'when interacting with OVSDB. Required when using an '
'"ssl:" prefixed ovsdb_connection'
)),
cfg.BoolOpt('ovsdb_debug',
default=False,
help=_('Enable OVSDB debug logs')),
]