changeset 5253:4155de7a48ca

sendmail: add more debug logging
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 07 Nov 2009 03:29:10 +0100
parents 6f6736e7683c
children fc47ff90b96f
files MoinMoin/mail/sendmail.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/mail/sendmail.py	Sat Nov 07 00:58:24 2009 +0100
+++ b/MoinMoin/mail/sendmail.py	Sat Nov 07 03:29:10 2009 +0100
@@ -75,6 +75,10 @@
     _ = request.getText
     cfg = request.cfg
     mail_from = mail_from or cfg.mail_from
+
+    logging.debug("send mail, from: %r, subj: %r" % (mail_from, subject))
+    logging.debug("send mail, to: %r" % (to, ))
+
     subject = subject.encode(config.charset)
 
     # Create a text/plain body using CRLF (see RFC2822)