Commit f3e17cc8 authored by Benjamin Blanc's avatar Benjamin Blanc

util: testnode: runScalabilityTestSuite: Fix log_path

parent 51f1540f
...@@ -36,6 +36,8 @@ class ScalabilityLauncher(object): ...@@ -36,6 +36,8 @@ class ScalabilityLauncher(object):
self.__argumentNamespace = self._parseArguments(argparse.ArgumentParser( self.__argumentNamespace = self._parseArguments(argparse.ArgumentParser(
description='Run ERP5 benchmarking scalability suites.')) description='Run ERP5 benchmarking scalability suites.'))
# Create Logger # Create Logger
log_path = os.path.join(self.__argumentNamespace.log_path,
"runScalabilityTestSuite.log")
logger_format = '%(asctime)s %(name)-13s: %(levelname)-8s %(message)s' logger_format = '%(asctime)s %(name)-13s: %(levelname)-8s %(message)s'
formatter = logging.Formatter(logger_format) formatter = logging.Formatter(logger_format)
logging.basicConfig(level=logging.INFO, logging.basicConfig(level=logging.INFO,
...@@ -43,7 +45,7 @@ class ScalabilityLauncher(object): ...@@ -43,7 +45,7 @@ class ScalabilityLauncher(object):
logger = logging.getLogger('runScalabilityTestSuite') logger = logging.getLogger('runScalabilityTestSuite')
logger.addHandler(logging.NullHandler()) logger.addHandler(logging.NullHandler())
file_handler = logging.handlers.RotatingFileHandler( file_handler = logging.handlers.RotatingFileHandler(
filename=self.__argumentNamespace.log_path+"runScalabilityTestSuite.log", filename=log_path,
maxBytes=20000000, backupCount=4) maxBytes=20000000, backupCount=4)
file_handler.setFormatter(formatter) file_handler.setFormatter(formatter)
logger.addHandler(file_handler) logger.addHandler(file_handler)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment