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
|
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