diff --git a/.gitlab-ci/lava/utils/log_follower.py b/.gitlab-ci/lava/utils/log_follower.py index 325224d8f19..d047bfd82af 100644 --- a/.gitlab-ci/lava/utils/log_follower.py +++ b/.gitlab-ci/lava/utils/log_follower.py @@ -279,16 +279,14 @@ def fix_lava_gitlab_section_log(): -def print_log(msg: str) -> None: +def print_log(msg: str, *args) -> None: # Reset color from timestamp, since `msg` can tint the terminal color - print(f"{CONSOLE_LOG['RESET']}{datetime.now()}: {msg}") + print(f"{CONSOLE_LOG['RESET']}{datetime.now()}: {msg}", *args) def fatal_err(msg, exception=None): colored_msg = f"{CONSOLE_LOG['FG_RED']}" - f"{msg}" - f"{CONSOLE_LOG['RESET']}" - print_log(colored_msg) + print_log(colored_msg, f"{msg}", f"{CONSOLE_LOG['RESET']}") if exception: raise exception sys.exit(1)