fix(pterodactyl): fixed websocket logging (only sends debug logs if the global logging level is set to verbose or trace)
This commit is contained in:
parent
fdb785ffd7
commit
c0195f44f6
1 changed files with 6 additions and 0 deletions
|
@ -1,4 +1,10 @@
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue