don't iDisplay if logging

This commit is contained in:
Noah Swartz 2016-01-08 02:00:47 -08:00
parent ea2c86b926
commit 6fedd22dc8
2 changed files with 4 additions and 2 deletions

View file

@ -1271,7 +1271,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
"""
self.config_test()
logger.debug(self.reverter.view_config_changes())
logger.debug(self.reverter.view_config_changes(logging=True))
self._reload()
def _reload(self):

View file

@ -94,7 +94,7 @@ class Reverter(object):
"Unable to load checkpoint during rollback")
rollback -= 1
def view_config_changes(self):
def view_config_changes(self, logging=False):
"""Displays all saved checkpoints.
All checkpoints are printed by
@ -144,6 +144,8 @@ class Reverter(object):
output.append(os.linesep)
if logging:
return os.linesep.join(output)
zope.component.getUtility(interfaces.IDisplay).notification(
os.linesep.join(output), display_util.HEIGHT)