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