feat: 修改 WebSocket 日志处理器,推送所有级别的日志

pull/1364/head
墨梓柒 2025-11-18 00:54:56 +08:00
parent 43e0c9a4ad
commit 8ad5ff6dba
No known key found for this signature in database
GPG Key ID: 4A65B9DBA35F7635
1 changed files with 2 additions and 2 deletions

View File

@ -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