Files
douyin_guaji-main/douyin/core
CodexandClaude Opus 4.7 c5c8def884 underlying_operations: 52 处 print → _uo_log
- 新增模块级 _uo_log(msg, level):与项目其他 print→logger 改造一致的模式,
  优先走 logging(带 [OCR]/[截图]/[Underlying]/[警告]/[错误] 前缀),失败兜底 stdout
- 替换的内容包括:
  - OCR 引擎初始化 / 延迟初始化(PaddleOCR / EasyOCR 切换)
  - exec-out 截图 / 文件替换 / 回退方案的失败日志
  - 滑动操作失败 / ADB 输入注入异常
  - 中奖截图保存 / OCR 调试输出
  - paste_text_at / click 等底层操作的调试输出
- 保留为 stdout:
  - 设备选择交互(L220-247,含 input() 提示,需要用户在 stdout 看到)
  - _uo_log helper 自身的最终兜底(L73)

回归:146 .py 全量编译通过;underlying_operations 类与 _LOGGER 加载正确;
test_filter_logging / check_web_gui_config_sync 通过。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 12:54:27 +08:00
..