fix(pterodactyl): reduced websocket logging level again
Some checks failed
Actions / Lint Code (Ruff & Pylint) (push) Failing after 25s
Actions / Build Documentation (MkDocs) (push) Successful in 32s

This commit is contained in:
Seaswimmer 2024-03-07 16:52:38 -05:00
parent c0195f44f6
commit 9eff010b35
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -1,10 +1,9 @@
import logging
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.DEBUG:
websocket_logger.setLevel(logging.INFO)
elif logger.level < logging.DEBUG:
websocket_logger.setLevel(logging.DEBUG)
if logger.level >= logging.VERBOSE:
websocket_logger.setLevel(logging.logging.INFO)
elif logger.level < logging.VERBOSE:
websocket_logger.setLevel(logging.logging.DEBUG)