Remove PXE filter logging

Remove log messages which tend to fill up the inspector logs when
debug is enabled without providing much value.

Change-Id: Ib848a13f30f5ef0074c9e43eb0a414bec0254637
This commit is contained in:
Bob Fournier 2019-03-14 21:08:31 -04:00
parent 0d5bc4b99d
commit 9978579fc1
3 changed files with 4 additions and 8 deletions

View File

@ -133,8 +133,6 @@ class BaseFilter(interface.FilterDriver):
:raises: InvalidFilterDriverState
:returns: nothing.
"""
LOG.debug('The PXE filter driver %s enters the fsm_reset_on_error '
'context', self)
try:
yield self.fsm
except automaton_errors.NotFound as e:
@ -148,9 +146,6 @@ class BaseFilter(interface.FilterDriver):
{'filter': self, 'error': e})
self.reset()
raise
finally:
LOG.debug('The PXE filter driver %s left the fsm_reset_on_error '
'context', self)
@locked_driver_event(Events.initialize)
def init_filter(self):
@ -177,7 +172,6 @@ class BaseFilter(interface.FilterDriver):
:param ironic: obligatory ironic client instance
:returns: nothing.
"""
LOG.debug('Syncing the PXE filter driver %s', self)
def get_periodic_sync_task(self):
"""Get periodic sync task for the filter.

View File

@ -211,8 +211,6 @@ class TestBaseFilterInterface(BaseFilterBaseTest):
def test_sync(self):
self.driver.sync(self.mock_ironic)
self.mock_log.debug.assert_called_once_with(
'Syncing the PXE filter driver %s', self.driver)
self.mock_reset.assert_not_called()
def test_tear_down_filter(self):

View File

@ -0,0 +1,4 @@
---
fixes:
- Remove debug logging for PXE filter driver which tends to fill up
inspector logs when debug is enabled.