logger: swap colors between INFO and WARNING
yellow is more a warning color than purple purple is more relaxing, so better for info
This commit is contained in:
parent
9378621877
commit
eb81b65e5b
|
@ -13,9 +13,9 @@ class CustomFormatter(logging.Formatter):
|
||||||
if record.levelname == "ERROR":
|
if record.levelname == "ERROR":
|
||||||
color = RED
|
color = RED
|
||||||
elif record.levelname == "WARNING":
|
elif record.levelname == "WARNING":
|
||||||
color = PURPLE
|
|
||||||
elif record.levelname in ["INFO", "DEBUG"]:
|
|
||||||
color = YELLOW
|
color = YELLOW
|
||||||
|
elif record.levelname in ["INFO", "DEBUG"]:
|
||||||
|
color = PURPLE
|
||||||
else:
|
else:
|
||||||
color = RESET
|
color = RESET
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue