From affd209a3ba6397989ae1b3a8574c51a0a491500 Mon Sep 17 00:00:00 2001 From: b3yond Date: Thu, 29 Mar 2018 00:33:29 +0200 Subject: [PATCH] changed logging to new scheme in sendmail.py --- sendmail.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sendmail.py b/sendmail.py index 1579165..38b4b24 100755 --- a/sendmail.py +++ b/sendmail.py @@ -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): """