]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-build-perf-test: simplify stderr log format
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 16 Aug 2016 09:16:47 +0000 (12:16 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 17 Aug 2016 09:35:26 +0000 (10:35 +0100)
Remove timestamps from the stderr log in order to make the console
output more readable, i.e. more in line with the output from unittest
runner.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/oe-build-perf-test

index 07f2a1fde5bac5b9414661a682afed46ca455a6d..9f3ba443666f90e1aee36f22a169fd9d2b691dd3 100755 (executable)
@@ -34,8 +34,7 @@ from oeqa.utils.commands import runCmd
 
 
 # Set-up logging
-LOG_FORMAT = '[%(asctime)s] %(levelname)s: %(message)s'
-logging.basicConfig(level=logging.INFO, format=LOG_FORMAT)
+logging.basicConfig(level=logging.INFO, format='%(levelname)s: %(message)s')
 log = logging.getLogger()
 
 
@@ -76,7 +75,7 @@ def setup_file_logging(log_file):
     log_dir = os.path.dirname(log_file)
     if not os.path.exists(log_dir):
         os.makedirs(log_dir)
-    formatter = logging.Formatter(LOG_FORMAT)
+    formatter = logging.Formatter('[%(asctime)s] %(levelname)s: %(message)s')
     handler = logging.FileHandler(log_file)
     handler.setFormatter(formatter)
     log.addHandler(handler)