2024-03-07 16:52:38 -05:00
|
|
|
from red_commons import logging
|
2024-03-07 03:38:34 -05:00
|
|
|
from red_commons.logging import getLogger
|
2024-02-29 23:26:24 -05:00
|
|
|
|
2024-03-07 03:38:34 -05:00
|
|
|
logger = getLogger('red.seacogs.pterodactyl')
|
|
|
|
websocket_logger = getLogger('red.seacogs.pterodactyl.websocket')
|
2024-03-07 16:52:38 -05:00
|
|
|
if logger.level >= logging.VERBOSE:
|
|
|
|
websocket_logger.setLevel(logging.logging.INFO)
|
|
|
|
elif logger.level < logging.VERBOSE:
|
|
|
|
websocket_logger.setLevel(logging.logging.DEBUG)
|