mirror of https://github.com/Mai-with-u/MaiBot.git
feat: 修改 WebSocket 日志处理器,推送所有级别的日志
parent
43e0c9a4ad
commit
8ad5ff6dba
|
|
@ -65,8 +65,8 @@ def get_ws_handler():
|
|||
global _ws_handler
|
||||
if _ws_handler is None:
|
||||
_ws_handler = WebSocketLogHandler()
|
||||
# WebSocket handler 只推送 INFO 及以上级别
|
||||
_ws_handler.setLevel(logging.INFO)
|
||||
# WebSocket handler 推送所有级别的日志
|
||||
_ws_handler.setLevel(logging.DEBUG)
|
||||
return _ws_handler
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue