changed logging to new scheme in sendmail.py

master
b3yond 2018-03-29 00:33:29 +02:00
parent 645a17bbcd
commit 6f3880edad
1 changed files with 1 additions and 7 deletions

View File

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