diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2016-08-16 12:16:47 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-17 10:35:44 +0100 |
commit | 818d4c2d8e8507634be5bb89087a24f971a4be01 (patch) | |
tree | db7f6fd531c79703d93de773e521771f177902aa /scripts/oe-build-perf-test | |
parent | 5039a910b706a20ed664370f6c8ccaaec7ab9010 (diff) | |
download | poky-818d4c2d8e8507634be5bb89087a24f971a4be01.tar.gz |
oe-build-perf-test: simplify stderr log format
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.
(From OE-Core rev: d28eeeabde9b4b7160a273445023a44fd50e29ab)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-build-perf-test')
-rwxr-xr-x | scripts/oe-build-perf-test | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/oe-build-perf-test b/scripts/oe-build-perf-test index 07f2a1fde5..9f3ba44366 100755 --- a/scripts/oe-build-perf-test +++ b/scripts/oe-build-perf-test | |||
@@ -34,8 +34,7 @@ from oeqa.utils.commands import runCmd | |||
34 | 34 | ||
35 | 35 | ||
36 | # Set-up logging | 36 | # Set-up logging |
37 | LOG_FORMAT = '[%(asctime)s] %(levelname)s: %(message)s' | 37 | logging.basicConfig(level=logging.INFO, format='%(levelname)s: %(message)s') |
38 | logging.basicConfig(level=logging.INFO, format=LOG_FORMAT) | ||
39 | log = logging.getLogger() | 38 | log = logging.getLogger() |
40 | 39 | ||
41 | 40 | ||
@@ -76,7 +75,7 @@ def setup_file_logging(log_file): | |||
76 | log_dir = os.path.dirname(log_file) | 75 | log_dir = os.path.dirname(log_file) |
77 | if not os.path.exists(log_dir): | 76 | if not os.path.exists(log_dir): |
78 | os.makedirs(log_dir) | 77 | os.makedirs(log_dir) |
79 | formatter = logging.Formatter(LOG_FORMAT) | 78 | formatter = logging.Formatter('[%(asctime)s] %(levelname)s: %(message)s') |
80 | handler = logging.FileHandler(log_file) | 79 | handler = logging.FileHandler(log_file) |
81 | handler.setFormatter(formatter) | 80 | handler.setFormatter(formatter) |
82 | log.addHandler(handler) | 81 | log.addHandler(handler) |