a2473678 by 冯轩

ADD:log

1 parent f744f42a
...@@ -1794,6 +1794,7 @@ class Command(BaseCommand, LoggerMixin): ...@@ -1794,6 +1794,7 @@ class Command(BaseCommand, LoggerMixin):
1794 for part_idx, ocr_data in enumerate(ocr_data_list): 1794 for part_idx, ocr_data in enumerate(ocr_data_list):
1795 part_idx = part_idx + 1 1795 part_idx = part_idx + 1
1796 classify = ocr_data.get('classify') 1796 classify = ocr_data.get('classify')
1797 self.online_log.info('{0} [task={1}] [classify={2}]'.format(self.log_base, task_str, classify))
1797 if classify is None: 1798 if classify is None:
1798 res_list.append((pno, ino, part_idx, consts.RES_FAILED_3)) 1799 res_list.append((pno, ino, part_idx, consts.RES_FAILED_3))
1799 self.online_log.warn('{0} [ocr_1 res error] [img={1}]'.format( 1800 self.online_log.warn('{0} [ocr_1 res error] [img={1}]'.format(
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!