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:26 +0100 |
commit | d28eeeabde9b4b7160a273445023a44fd50e29ab (patch) | |
tree | 1fb1135f01375045fb1d6a8388148cc89b99b91c | |
parent | 9ce6e20ce239067896dc65f09e3fef1173293065 (diff) | |
download | openembedded-core-contrib-d28eeeabde9b4b7160a273445023a44fd50e29ab.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.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-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 07f2a1fde5b..9f3ba443666 100755 --- a/scripts/oe-build-perf-test +++ b/scripts/oe-build-perf-test @@ -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) |