添加日志配置
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import logging
|
import logging.config
|
||||||
import math
|
import math
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
@@ -13,6 +13,7 @@ from paddleocr import PaddleOCR
|
|||||||
from sqlalchemy import update
|
from sqlalchemy import update
|
||||||
|
|
||||||
from auto_email.error_email import send_an_error_email
|
from auto_email.error_email import send_an_error_email
|
||||||
|
from config.log import LOGGING_CONFIG
|
||||||
from config.mysql import MysqlSession
|
from config.mysql import MysqlSession
|
||||||
from config.photo_review import PHHD_BATCH_SIZE, SLEEP_MINUTES
|
from config.photo_review import PHHD_BATCH_SIZE, SLEEP_MINUTES
|
||||||
from config.ucloud import BUCKET
|
from config.ucloud import BUCKET
|
||||||
@@ -261,6 +262,7 @@ def photo_mask(pk_phhd, content):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
logging.config.dictConfig(LOGGING_CONFIG)
|
||||||
try:
|
try:
|
||||||
while 1:
|
while 1:
|
||||||
session = MysqlSession()
|
session = MysqlSession()
|
||||||
|
|||||||
Reference in New Issue
Block a user