85b24dac by 周伟奇

remove ocr res logger

1 parent 557a6941
...@@ -476,8 +476,8 @@ class Command(BaseCommand, LoggerMixin): ...@@ -476,8 +476,8 @@ class Command(BaseCommand, LoggerMixin):
476 ocr_1_res = ocr_1_response.json() 476 ocr_1_res = ocr_1_response.json()
477 end_time = time.time() 477 end_time = time.time()
478 speed_time = int(end_time - start_time) 478 speed_time = int(end_time - start_time)
479 self.cronjob_log.info('{0} [ocr_1 success] [img={1}] [res={2}] [speed_time={3}]'.format( 479 self.cronjob_log.info('{0} [ocr_1 success] [img={1}] [url={2}] [speed_time={3}]'.format(
480 self.log_base, img_path, ocr_1_res, speed_time)) 480 self.log_base, img_path, url, speed_time))
481 break 481 break
482 else: 482 else:
483 ocr_1_res = {} 483 ocr_1_res = {}
...@@ -588,8 +588,8 @@ class Command(BaseCommand, LoggerMixin): ...@@ -588,8 +588,8 @@ class Command(BaseCommand, LoggerMixin):
588 end_time = time.time() 588 end_time = time.time()
589 speed_time = int(end_time - start_time) 589 speed_time = int(end_time - start_time)
590 self.cronjob_log.info( 590 self.cronjob_log.info(
591 '{0} [ocr_2 success] [img={1}] [res={2}] [speed_time={3}]'.format( 591 '{0} [ocr_2 success] [img={1}] [speed_time={2}]'.format(
592 self.log_base, img_path, ocr_2_res, speed_time)) 592 self.log_base, img_path, speed_time))
593 593
594 if classify == consts.BC_CLASSIFY: 594 if classify == consts.BC_CLASSIFY:
595 name = '有' 595 name = '有'
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!