Mentions légales du service

Skip to content
Snippets Groups Projects

Fixed logs for arcade & easytracker

Merged GENEVOIS Noe requested to merge dev/noe/log into main
3 files
+ 9
4
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 3
1
import logging
import os
class Colors:
@@ -52,7 +53,8 @@ def set_loggers_level(loglevel):
for l in get_loggers():
l.setLevel(loglevel)
logging.setLoggerClass(ColoredLogger)
if "AGDB_LOGS_NO_COLOR" not in os.environ or os.environ["AGDB_LOGS_NO_COLOR"] != "1":
logging.setLoggerClass(ColoredLogger)
log = logging.getLogger("agdb")
cus = logging.getLogger("custom")
Loading