refactor: 移除并行OCR子任务的单独性能日志输出以避免日志重复
This commit is contained in:
1 parent
238241b0dc
commit
e7b0b666d1
1 file changed
+10
-9
@@ -1052,15 +1052,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_live_room_title"] = dur
|
||||
try:
|
||||
analyser._log_kv(
|
||||
"性能",
|
||||
"并行OCR子任务单项耗时(ms)",
|
||||
field="live_room_title",
|
||||
duration_ms=dur,
|
||||
)
|
||||
except Exception:
|
||||
pass
|
||||
# 移除单独的性能日志输出,避免日志重复
|
||||
# try:
|
||||
# analyser._log_kv(
|
||||
# "性能",
|
||||
# "并行OCR子任务单项耗时(ms)",
|
||||
# field="live_room_title",
|
||||
# duration_ms=dur,
|
||||
# )
|
||||
# except Exception:
|
||||
# pass
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
Reference in new issue
Block a user