添加日志配置

This commit is contained in:
2024-07-10 09:24:36 +08:00
parent ce0e0f3bbd
commit f07f2f223d

View File

@@ -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()