parent
539dff7c2a
commit
46c3e5f374
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue