Remove duplicate file logger formatter setting

Change-Id: Ia7851a4266fa61658c48cc894163c6afb7252750
This commit is contained in:
Rui Chen 2016-06-08 16:28:59 +08:00
parent 84506a6b71
commit a4670054c6

View File

@ -173,8 +173,6 @@ class LogConfigurator(object):
if log_file:
if not self.file_logger:
self.file_logger = logging.FileHandler(filename=log_file)
formatter = _FileFormatter(cloud_config=cloud_config)
self.file_logger.setFormatter(formatter)
self.file_logger.setFormatter(_FileFormatter(config=cloud_config))
self.file_logger.setLevel(log_level)
self.root_logger.addHandler(self.file_logger)