changed logging to new scheme in sendmail.py

This commit is contained in:
b3yond 2018-03-29 00:33:29 +02:00
parent ca55223be9
commit affd209a3b

View file

@ -8,13 +8,7 @@ from email.mime.application import MIMEApplication
from email.mime.multipart import MIMEMultipart from email.mime.multipart import MIMEMultipart
import logging import logging
logger = logging.getLogger(__name__)
logpath = config['logging']['logpath']
logger = logging.getLogger()
fh = logging.FileHandler(logpath)
fh.setLevel(logging.DEBUG)
logger.addHandler(fh)
class Mailer(object): class Mailer(object):
""" """