SeaCogs/pterodactyl/logger.py
SeaswimmerTheFsh 56522e51ad
All checks were successful
Actions / Lint Code (Ruff & Pylint) (push) Successful in 42s
Actions / Build Documentation (MkDocs) (push) Successful in 42s
fix(pterodactyl): pylint fixes
2024-03-07 21:14:12 -05:00

9 lines
365 B
Python

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