forked from cswimr/SeaCogs
fix(pterodactyl): reduced websocket logging level again
This commit is contained in:
parent
c0195f44f6
commit
9eff010b35
1 changed files with 5 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue