EVAL/logger.py

9 lines
188 B
Python
Raw Permalink Normal View History

2023-03-22 00:34:52 +00:00
import logging
from env import settings
logger = logging.getLogger("EVAL")
if settings["LOG_LEVEL"] == "DEBUG":
logger.setLevel(logging.DEBUG)
else:
logger.setLevel(logging.INFO)