添加日志

This commit is contained in:
2024-06-26 08:35:17 +08:00
parent 171f8b0db9
commit bcd8713ee3

View File

@@ -153,7 +153,7 @@ def information_extraction(ie, phrecs):
try:
ie_results = ie(docs)
except Exception as e:
logging.error(e)
logging.error("信息抽取时出错:", e)
return result
finally:
for temp_file in docs:
@@ -341,6 +341,7 @@ def main():
if phhds:
for phhd in phhds:
pk_phhd = phhd.pk_phhd
logging.info(f"开始识别:{pk_phhd}")
photo_review(pk_phhd)
# 识别完成更新标识