forked from cswimr/SeaCogs
fix(pterodactyl): log websocket messages to VERBOSE (log level 5) and not DEBUG
This commit is contained in:
parent
9e826d6ba5
commit
ae31a61436
1 changed files with 10 additions and 0 deletions
|
@ -1,4 +1,14 @@
|
|||
import logging
|
||||
|
||||
logger = logging.getLogger('red.seacogs.pterodactyl')
|
||||
class WebsocketLogger(logging.Logger):
|
||||
def __init__(self, name, level=logging.NOTSET):
|
||||
super().__init__(name, level)
|
||||
|
||||
def debug(self, msg, *args, **kwargs):
|
||||
self.log(logging.VERBOSE, msg, *args, **kwargs)
|
||||
|
||||
logging.setLoggerClass(WebsocketLogger)
|
||||
websocket_logger = logging.getLogger('red.seacogs.pterodactyl.websocket')
|
||||
logging.VERBOSE = 5
|
||||
logging.addLevelName(logging.VERBOSE, "VERBOSE")
|
||||
|
|
Loading…
Reference in a new issue