2024-03-07 16:48:40 -05:00
|
|
|
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:48:40 -05:00
|
|
|
if logger.level == logging.DEBUG:
|
|
|
|
websocket_logger.setLevel(logging.INFO)
|
|
|
|
elif logger.level < logging.DEBUG:
|
|
|
|
websocket_logger.setLevel(logging.DEBUG)
|