From 238241b0dce16d6111c990568f54c3eac15870f8 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 16 Jan 2026 16:43:35 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E7=9A=84=E6=80=A7=E8=83=BD=E6=97=A5=E5=BF=97=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E4=BB=A5=E7=AE=80=E5=8C=96=E6=97=A5=E5=BF=97=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- douyin/fudai/douyin_fudai_core.py | 95 ++++++++++++++++--------------- 1 file changed, 50 insertions(+), 45 deletions(-) diff --git a/douyin/fudai/douyin_fudai_core.py b/douyin/fudai/douyin_fudai_core.py index aca7807..6effe7e 100644 --- a/douyin/fudai/douyin_fudai_core.py +++ b/douyin/fudai/douyin_fudai_core.py @@ -779,15 +779,16 @@ def get_fudai_contain(analyser, renwu: int = 2) -> Tuple[str, str, int, int, flo dur = round((time.time() - start) * 1000, 1) with perf_task_lock: perf_task_durations["ocr_task_list"] = dur - try: - analyser._log_kv( - "性能", - "并行OCR子任务单项耗时(ms)", - field="task_list", - duration_ms=dur, - ) - except Exception: - pass + # 移除单独的性能日志输出,避免日志重复 + # try: + # analyser._log_kv( + # "性能", + # "并行OCR子任务单项耗时(ms)", + # field="task_list", + # duration_ms=dur, + # ) + # except Exception: + # pass except Exception: pass @@ -844,15 +845,16 @@ def get_fudai_contain(analyser, renwu: int = 2) -> Tuple[str, str, int, int, flo dur = round((time.time() - start) * 1000, 1) with perf_task_lock: perf_task_durations["ocr_content"] = dur - try: - analyser._log_kv( - "性能", - "并行OCR子任务单项耗时(ms)", - field="content", - duration_ms=dur, - ) - except Exception: - pass + # 移除单独的性能日志输出,避免日志重复 + # try: + # analyser._log_kv( + # "性能", + # "并行OCR子任务单项耗时(ms)", + # field="content", + # duration_ms=dur, + # ) + # except Exception: + # pass except Exception: pass @@ -880,15 +882,16 @@ def get_fudai_contain(analyser, renwu: int = 2) -> Tuple[str, str, int, int, flo dur = round((time.time() - start) * 1000, 1) with perf_task_lock: perf_task_durations["ocr_countdown_mm"] = dur - try: - analyser._log_kv( - "性能", - "并行OCR子任务单项耗时(ms)", - field="countdown_mm", - duration_ms=dur, - ) - except Exception: - pass + # 移除单独的性能日志输出,避免日志重复 + # try: + # analyser._log_kv( + # "性能", + # "并行OCR子任务单项耗时(ms)", + # field="countdown_mm", + # duration_ms=dur, + # ) + # except Exception: + # pass except Exception: pass @@ -916,15 +919,16 @@ def get_fudai_contain(analyser, renwu: int = 2) -> Tuple[str, str, int, int, flo dur = round((time.time() - start) * 1000, 1) with perf_task_lock: perf_task_durations["ocr_countdown_ss"] = dur - try: - analyser._log_kv( - "性能", - "并行OCR子任务单项耗时(ms)", - field="countdown_ss", - duration_ms=dur, - ) - except Exception: - pass + # 移除单独的性能日志输出,避免日志重复 + # try: + # analyser._log_kv( + # "性能", + # "并行OCR子任务单项耗时(ms)", + # field="countdown_ss", + # duration_ms=dur, + # ) + # except Exception: + # pass except Exception: pass @@ -964,15 +968,16 @@ def get_fudai_contain(analyser, renwu: int = 2) -> Tuple[str, str, int, int, flo dur = round((time.time() - start) * 1000, 1) with perf_task_lock: perf_task_durations["ocr_value"] = dur - try: - analyser._log_kv( - "性能", - "并行OCR子任务单项耗时(ms)", - field="value", - duration_ms=dur, - ) - except Exception: - pass + # 移除单独的性能日志输出,避免日志重复 + # try: + # analyser._log_kv( + # "性能", + # "并行OCR子任务单项耗时(ms)", + # field="value", + # duration_ms=dur, + # ) + # except Exception: + # pass except Exception: pass