fixed testing

This commit is contained in:
Beverly Nguyen
2025-04-18 11:11:01 -07:00
parent 20cbb0a8db
commit 34fdf7a1ca
3 changed files with 7 additions and 17 deletions

View File

@@ -12,12 +12,11 @@ from pythonjsonlogger.jsonlogger import JsonFormatter as BaseJSONFormatter
class ColorFormatter(logging.Formatter):
COLOR_MAP = {
'DEBUG': '\033[94m',
'WARNING': '\033[93m',
'ERROR': '\033[91m',
'CRITICAL': '\033[95m',
"WARNING": "\033[93m",
"ERROR": "\033[91m",
"CRITICAL": "\033[95m",
}
RESET = '\033[0m'
RESET = "\033[0m"
def format(self, record: logging.LogRecord) -> str:
color = self.COLOR_MAP.get(record.levelname, self.RESET)