diff --git a/src/gallia/log.py b/src/gallia/log.py index 622ff7e84..c224de74b 100644 --- a/src/gallia/log.py +++ b/src/gallia/log.py @@ -405,15 +405,11 @@ def _format_record( # noqa: PLR0913 else: msg += data - if volatile_info: + if volatile_info and levelno <= Loglevel.INFO: terminal_width, _ = shutil.get_terminal_size() - msg = msg[: terminal_width + extra_len] # Adapt length to invisible ANSI colors + msg = msg[: terminal_width + extra_len - 1] # Adapt length to invisible ANSI colors msg += _Color.RESET.value - - if levelno <= Loglevel.INFO: - msg += "\r" - else: - msg += "\n" + msg += "\r" else: msg += "\n"