chore: remove OCR archive, delete collect_ocr_failures, update docs

This commit is contained in:
Your Name committed 2026-01-03 03:50:45 +08:00
1 parent f2cd77ab0b
commit 9e08ed3bd0
18 files changed
+1516 -512

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
from douyin.logging.douyin_logging_wrapper import LoggingWrapper
class DummyAnalyser:
def __init__(self):
self._log_seq = 0
self._last_log_tag = None
self._last_action_tag = None
self._run_id = "test"
self._std_logger = None
analyser = DummyAnalyser()
# 普通操作
LoggingWrapper.enhanced_log_kv(analyser, "操作", "执行点击", x=100, y=200)
# 截图相关
LoggingWrapper.enhanced_log_kv(
analyser, "截图", "保存截图", filename="step1.png", log_type="SCREENSHOT"
)
# 错误
try:
raise ValueError("测试错误")
except Exception as e:
LoggingWrapper.enhanced_log_kv(
analyser, "错误", "发生异常", error=str(e), log_type="ERR"
)
print("测试完成")