aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/oe-build-perf-test
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/oe-build-perf-test')
-rwxr-xr-xscripts/oe-build-perf-test5
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)