[csw-devel] SF.net SVN: gar:[18143] csw/mgar/gar/v2/lib/python/catalog_notifier.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Mon May 28 15:08:51 CEST 2012
Revision: 18143
http://gar.svn.sourceforge.net/gar/?rev=18143&view=rev
Author: wahwah
Date: 2012-05-28 13:08:51 +0000 (Mon, 28 May 2012)
Log Message:
-----------
catalog-notifier: 'email sent' only if really sent
A minor touch in debugging messages.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/catalog_notifier.py
Modified: csw/mgar/gar/v2/lib/python/catalog_notifier.py
===================================================================
--- csw/mgar/gar/v2/lib/python/catalog_notifier.py 2012-05-28 11:42:48 UTC (rev 18142)
+++ csw/mgar/gar/v2/lib/python/catalog_notifier.py 2012-05-28 13:08:51 UTC (rev 18143)
@@ -270,12 +270,12 @@
s = smtplib.SMTP('mail.opencsw.org')
try:
s.sendmail(from_address, [email], msg.as_string())
+ logging.debug("E-mail sending finished.")
except smtplib.SMTPRecipientsRefused, e:
logging.warning(
"Sending email to %s failed, recipient refused.",
repr(email))
s.quit()
- logging.debug("E-mail sent.")
else:
print notifications[email]
print "* * *"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list