Make critical errors as red bold for logging to console

This commit is contained in:
Clemens Schwaighofer
2025-07-10 14:34:06 +09:00
parent 3e5a5accf7
commit 19d7e9b5ed
2 changed files with 10 additions and 3 deletions

View File

@@ -42,8 +42,8 @@ class CustomConsoleFormatter(logging.Formatter):
"INFO": Colors.green,
"WARNING": Colors.yellow,
"ERROR": Colors.red,
"CRITICAL": Colors.magenta,
"EXCEPTION": Colors.magenta_bold,
"CRITICAL": Colors.red_bold,
"EXCEPTION": Colors.magenta_bold, # will never be written to console
}
def format(self, record: logging.LogRecord) -> str: