89c4f059 by 冯轩

add:log

1 parent 86f573ce
...@@ -1820,6 +1820,7 @@ class Command(BaseCommand, LoggerMixin): ...@@ -1820,6 +1820,7 @@ class Command(BaseCommand, LoggerMixin):
1820 else: 1820 else:
1821 self.online_log.info('{0} [ocr_1 start] [img={1}] [url={2}]'.format(self.log_base, img_path, url)) 1821 self.online_log.info('{0} [ocr_1 start] [img={1}] [url={2}]'.format(self.log_base, img_path, url))
1822 ocr_1_res = ocr_1_response.json() 1822 ocr_1_res = ocr_1_response.json()
1823 self.online_log.info('{0} [ocr_1 api res] [img={1}] [ocr_1_res={2}]'.format(self.log_base, img_path, ocr_1_res))
1823 end_time = time.time() 1824 end_time = time.time()
1824 speed_time = int(end_time - start_time) 1825 speed_time = int(end_time - start_time)
1825 self.online_log.info('{0} [ocr_1 success] [img={1}] [url={2}] [speed_time={3}]'.format( 1826 self.online_log.info('{0} [ocr_1 success] [img={1}] [url={2}] [speed_time={3}]'.format(
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!