Drop the log level for "neutron extension found"

The code that checks if neutron extensions are enabled is
currently logging at the INFO level.  This patch drops these to
the debug level as they are not useful messages for day-to-day
operation of Octavia.

Change-Id: Id2e4237a8a786f5f8a771290f6b890e3bb2b57c4
This commit is contained in:
Michael Johnson
2016-09-22 23:51:52 +00:00
parent 6502abf2cf
commit 82f81e3a7a

View File

@@ -18,7 +18,7 @@ from oslo_log import log as logging
from octavia.common import clients
from octavia.common import data_models
from octavia.i18n import _LE, _LI
from octavia.i18n import _LE
from octavia.network import base
from octavia.network import data_models as network_models
from octavia.network.drivers.neutron import utils
@@ -51,17 +51,17 @@ class BaseNeutronDriver(base.AbstractNetworkDriver):
def _check_extension_enabled(self, extension_alias):
if extension_alias in self._check_extension_cache:
status = self._check_extension_cache[extension_alias]
LOG.info(_LI('Neutron extension {ext} cached as {status}').format(
LOG.debug('Neutron extension {ext} cached as {status}'.format(
ext=extension_alias,
status='enabled' if status else 'disabled'))
else:
try:
self.neutron_client.show_extension(extension_alias)
LOG.info(_LI('Neutron extension {ext} found enabled').format(
LOG.debug('Neutron extension {ext} found enabled'.format(
ext=extension_alias))
self._check_extension_cache[extension_alias] = True
except neutron_client_exceptions.NotFound:
LOG.info(_LI('Neutron extension {ext} is not enabled').format(
LOG.debug('Neutron extension {ext} is not enabled'.format(
ext=extension_alias))
self._check_extension_cache[extension_alias] = False
return self._check_extension_cache[extension_alias]