don't dim debug logs

that makes them too hard to read.
This commit is contained in:
Maximilian Hils 2022-09-19 16:42:38 +02:00
parent 539dff7c2a
commit 46c3e5f374
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class MitmFormatter(logging.Formatter):
message = miniclick.style(
message,
fg=LOG_COLORS.get(record.levelno),
dim=(record.levelno <= logging.DEBUG)
# dim=(record.levelno <= logging.DEBUG)
)
if client := getattr(record, "client", None):
client = human.format_address(client)

View File

@ -53,5 +53,5 @@ async def test_styling(monkeypatch) -> None:
tctx.configure(t)
logging.warning("hello")
assert "\x1b[33m\x1b[22mhello\x1b[0m" in f.getvalue()
assert "\x1b[33mhello\x1b[0m" in f.getvalue()
t.done()