From f07f2f223d8aa4a1f25c49d939c0500ad013d5c5 Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Wed, 10 Jul 2024 09:24:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=A5=E5=BF=97=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- photo_mask.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/photo_mask.py b/photo_mask.py index a66e8b9..5e2715f 100644 --- a/photo_mask.py +++ b/photo_mask.py @@ -1,4 +1,4 @@ -import logging +import logging.config import math import os import tempfile @@ -13,6 +13,7 @@ from paddleocr import PaddleOCR from sqlalchemy import update from auto_email.error_email import send_an_error_email +from config.log import LOGGING_CONFIG from config.mysql import MysqlSession from config.photo_review import PHHD_BATCH_SIZE, SLEEP_MINUTES from config.ucloud import BUCKET @@ -261,6 +262,7 @@ def photo_mask(pk_phhd, content): if __name__ == '__main__': + logging.config.dictConfig(LOGGING_CONFIG) try: while 1: session = MysqlSession()