From 868daded22de6ba96dbb898613fdcf2720ff4b11 Mon Sep 17 00:00:00 2001 From: Guilherme Gallo Date: Thu, 30 Jun 2022 18:43:05 -0300 Subject: [PATCH] ci/lava: Highlight kernel messages in bold This will serve to warn the user that those messages are processed differently, e.g. the kmsgs does not trigger heartbeats and maybe eventual targets of hint to retry the job immediately. Signed-off-by: Guilherme Gallo Part-of: --- .gitlab-ci/lava/utils/lava_log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci/lava/utils/lava_log.py b/.gitlab-ci/lava/utils/lava_log.py index eeb3d4d3a43..090c9658cd7 100644 --- a/.gitlab-ci/lava/utils/lava_log.py +++ b/.gitlab-ci/lava/utils/lava_log.py @@ -264,7 +264,7 @@ class LogFollower: # we have a line, check if it is a kernel message if re.search(r"\[[\d\s]{5}\.[\d\s]{6}\] +\S{2,}", line["msg"]): - print_log(f"{line['msg']}") + print_log(f"{CONSOLE_LOG['BOLD']}{line['msg']}{CONSOLE_LOG['RESET']}") return True return False