7268a3ce by 周伟奇

fix log

1 parent 12a2684f
...@@ -695,8 +695,12 @@ def se_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res ...@@ -695,8 +695,12 @@ def se_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res
695 compare_info = get_se_compare_info(last_obj, application_entity) 695 compare_info = get_se_compare_info(last_obj, application_entity)
696 compare_result, total_fields, failed_count, successful_at_this_level, failure_reason_str = se_compare_process( 696 compare_result, total_fields, failed_count, successful_at_this_level, failure_reason_str = se_compare_process(
697 compare_info, ocr_res_dict) 697 compare_info, ocr_res_dict)
698 compare_log.info('{0} [SE] [compare success] [entity={1}] [id={2}] [ocr_res_id={3}] [result={4}]'.format(
699 log_base, application_entity, application_id, ocr_res_id, compare_result))
698 except Exception as e: 700 except Exception as e:
699 pass 701 compare_log.error('{0} [SE] [compare error] [entity={1}] [id={2}] [ocr_res_id={3}] '
702 '[error={4}]'.format(log_base, application_entity, application_id, ocr_res_id,
703 traceback.format_exc()))
700 else: 704 else:
701 # 将比对结果写入数据库 705 # 将比对结果写入数据库
702 try: 706 try:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!