forked from ticketfrei/ticketfrei
changed logging to new scheme in sendmail.py
This commit is contained in:
parent
645a17bbcd
commit
6f3880edad
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue