fix: 彻底重写消息抓取—深度4递归遍历右侧半区文本+UI树调试转储

This commit is contained in:
youpaishidifu
2026-07-24 20:50:20 +08:00
parent 2563077bbc
commit db31102a43
3 changed files with 150 additions and 92 deletions
+7 -1
View File
@@ -9,11 +9,17 @@ os.chdir(os.path.dirname(os.path.abspath(__file__)))
# 配置日志
logging.basicConfig(
level=logging.INFO,
level=logging.DEBUG,
format="%(asctime)s [%(name)s] %(levelname)s: %(message)s",
datefmt="%H:%M:%S",
)
# 文件日志(持久化,便于排查)
_fh = logging.FileHandler("msgbot.log", encoding="utf-8", mode="w")
_fh.setLevel(logging.DEBUG)
_fh.setFormatter(logging.Formatter("%(asctime)s [%(name)s] %(levelname)s: %(message)s"))
logging.getLogger().addHandler(_fh)
logger = logging.getLogger("msgbot")