53a481dc by 冯轩

Merge branch 'feature/add_log_20240924' into feature/uat-tmp

2 parents 37716c11 77f818a1
...@@ -1669,6 +1669,7 @@ class Command(BaseCommand, LoggerMixin): ...@@ -1669,6 +1669,7 @@ class Command(BaseCommand, LoggerMixin):
1669 self.log_base, img_path, traceback.format_exc())) 1669 self.log_base, img_path, traceback.format_exc()))
1670 else: 1670 else:
1671 try: 1671 try:
1672 self.online_log.info('{0} [del json_data_1] [img={1}] '.format(self.log_base, img_path))
1672 del json_data_1 1673 del json_data_1
1673 # /data/bmw-ocr-data/AFC/tmp/6/img/page_0_img_0.jpeg 1674 # /data/bmw-ocr-data/AFC/tmp/6/img/page_0_img_0.jpeg
1674 # AFC_2 1675 # AFC_2
...@@ -1686,6 +1687,7 @@ class Command(BaseCommand, LoggerMixin): ...@@ -1686,6 +1687,7 @@ class Command(BaseCommand, LoggerMixin):
1686 finish_queue.put(task_str) 1687 finish_queue.put(task_str)
1687 self.online_log.info('{0} [ocr_1 to finish_queue] [img={1}] '.format(self.log_base, img_path)) 1688 self.online_log.info('{0} [ocr_1 to finish_queue] [img={1}] '.format(self.log_base, img_path))
1688 del todo_count_dict[task_str] 1689 del todo_count_dict[task_str]
1690 self.online_log.info('{0} [del todo_count_dict] [img={1}] '.format(self.log_base, img_path))
1689 else: 1691 else:
1690 todo_count_dict[task_str] = todo_count - 1 1692 todo_count_dict[task_str] = todo_count - 1
1691 self.online_log.info('{0} [after lock] [img={1}] '.format(self.log_base, img_path)) 1693 self.online_log.info('{0} [after lock] [img={1}] '.format(self.log_base, img_path))
...@@ -1698,6 +1700,7 @@ class Command(BaseCommand, LoggerMixin): ...@@ -1698,6 +1700,7 @@ class Command(BaseCommand, LoggerMixin):
1698 while len(error_list) == 0 or not img_queue.empty() or not finish_queue.empty(): 1700 while len(error_list) == 0 or not img_queue.empty() or not finish_queue.empty():
1699 try: 1701 try:
1700 task_str = finish_queue.get(block=False) 1702 task_str = finish_queue.get(block=False)
1703 self.online_log.info('{0} [res_2_wb] [finish_queue.get]'.format(self.log_base))
1701 except Exception as e: 1704 except Exception as e:
1702 self.online_log.info('{0} [res_2_wb] [queue empty]'.format(self.log_base)) 1705 self.online_log.info('{0} [res_2_wb] [queue empty]'.format(self.log_base))
1703 time.sleep(self.sleep_time_task_get) 1706 time.sleep(self.sleep_time_task_get)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!