SeaCogs/pterodactyl/logger.py

11 lines
325 B
Python
Raw Normal View History

import logging
from red_commons.logging import getLogger
logger = getLogger('red.seacogs.pterodactyl')
websocket_logger = getLogger('red.seacogs.pterodactyl.websocket')
if logger.level == logging.DEBUG:
websocket_logger.setLevel(logging.INFO)
elif logger.level < logging.DEBUG:
websocket_logger.setLevel(logging.DEBUG)