From eb81b65e5b4c37c2297ef958df0eec9457e468a2 Mon Sep 17 00:00:00 2001 From: pedro Date: Sun, 10 Nov 2024 03:51:15 +0100 Subject: [PATCH] logger: swap colors between INFO and WARNING yellow is more a warning color than purple purple is more relaxing, so better for info --- utils/logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/logger.py b/utils/logger.py index df85e7e..3a320ce 100644 --- a/utils/logger.py +++ b/utils/logger.py @@ -13,9 +13,9 @@ class CustomFormatter(logging.Formatter): if record.levelname == "ERROR": color = RED elif record.levelname == "WARNING": - color = PURPLE - elif record.levelname in ["INFO", "DEBUG"]: color = YELLOW + elif record.levelname in ["INFO", "DEBUG"]: + color = PURPLE else: color = RESET