add:log
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -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( | ... | ... |
-
Please register or sign in to post a comment