Removed redundant logger and config setup.

This commit is contained in:
Adam Woodbeck
2014-11-26 21:36:32 -05:00
parent 13f1286e66
commit 13b9a63e7f
+3 -6
View File
@@ -11,6 +11,9 @@ from letsencrypt.client import display
from letsencrypt.client import logger
BASENAME = os.path.basename(sys.argv[0])
logger.setLogger(logger.FileLogger(sys.stdout))
logger.setLogLevel(logger.INFO)
config = apache_configurator.ApacheConfigurator()
def main():
@@ -98,18 +101,12 @@ def rollback(checkpoints):
:type checkpoints: int
"""
logger.setLogger(logger.FileLogger(sys.stdout))
logger.setLogLevel(logger.INFO)
config = apache_configurator.ApacheConfigurator()
config.rollback_checkpoints(checkpoints)
config.restart()
def view_checkpoints():
"""View checkpoints and associated configuration changes."""
logger.setLogger(logger.FileLogger(sys.stdout))
logger.setLogLevel(logger.INFO)
config = apache_configurator.ApacheConfigurator()
config.display_checkpoints()