diff --git a/app.py b/app.py index 2ba09e5..08bc5c3 100644 --- a/app.py +++ b/app.py @@ -1,6 +1,7 @@ import datetime import email.message import logging +import logging.config import os import smtplib @@ -14,7 +15,7 @@ from flask import ( import config -logging.basicConfig(format="%(asctime)s %(levelname)s %(name)s %(lineno)d | %(message)s", level=logging.DEBUG) +logging.config.dictConfig(config.logging) app = Flask(__name__) app.secret_key = config.secret_key