[releng] Rename custom SMTP handler
Till Maas
till at fedoraproject.org
Fri Sep 26 21:07:51 UTC 2014
commit 460888402b175e1199243bfdf262e082eabd039d
Author: Till Maas <opensource at till.name>
Date: Fri Sep 26 23:06:50 2014 +0200
Rename custom SMTP handler
scripts/autosigner.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/scripts/autosigner.py b/scripts/autosigner.py
index 5b91192..ba14e2f 100755
--- a/scripts/autosigner.py
+++ b/scripts/autosigner.py
@@ -49,7 +49,7 @@ TAG_INFO = {("f22",): "fedora-22",}
secondary_instances = ["arm", "ppc", "s390"]
-class AutosignerSMTPHandler(logging.handlers.SMTPHandler):
+class SubjectSMTPHandler(logging.handlers.SMTPHandler):
def getSubject(self, record):
first_line = record.message.split("\n")[0]
fmt = "Autosigner: {0.levelname}: {first_line}"
@@ -384,7 +384,7 @@ def setup_logging():
# FIXME: Make this a config option
fedora_user = getpass.getuser()
- mail_logger = AutosignerSMTPHandler(
+ mail_logger = SubjectSMTPHandler(
"127.0.0.1", fedora_user, [fedora_user], "Autosigner log event")
mail_logger.setLevel(logging.ERROR)
mail_logger.setFormatter(formatter)
More information about the rel-eng
mailing list