Skip to content

Commit

Permalink
fixup! feat(log): Add --no-volatile-info as class option to all scanners
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdinandjarisch committed Sep 26, 2023
1 parent ed414de commit 7654f47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gallia/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,9 @@ def _format_record( # noqa: PLR0913

if volatile_info and levelno <= Loglevel.INFO:
terminal_width, _ = shutil.get_terminal_size()
msg = msg[: terminal_width + extra_len - 1] # Adapt length to invisible ANSI colors
msg = msg[
: terminal_width + extra_len - 1
] # Adapt length to invisible ANSI colors
msg += _Color.RESET.value
msg += "\r"
else:
Expand Down

0 comments on commit 7654f47

Please sign in to comment.