summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-11-28 13:57:30 -0300
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-11-28 13:57:30 -0300
commit3804b683046016f5d1ac2f51d63ada2ed5b7947b (patch)
tree06b7abfc27c8eebd34e140a3a983e04dc31dfcdf
parent93057a8004b47a8ff7d7cb8f983f39d6d37b12b1 (diff)
downloadaskbot-3804b683046016f5d1ac2f51d63ada2ed5b7947b.tar.gz
askbot-3804b683046016f5d1ac2f51d63ada2ed5b7947b.tar.bz2
askbot-3804b683046016f5d1ac2f51d63ada2ed5b7947b.zip
added logging statement to send_mail
-rw-r--r--askbot/mail/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/askbot/mail/__init__.py b/askbot/mail/__init__.py
index 6e181b33..9da53ac4 100644
--- a/askbot/mail/__init__.py
+++ b/askbot/mail/__init__.py
@@ -1,6 +1,7 @@
"""functions that send email in askbot
these automatically catch email-related exceptions
"""
+import logging
import os
import re
import smtplib
@@ -133,6 +134,7 @@ def send_mail(
)
msg.attach_alternative(body_text, "text/html")
msg.send()
+ logging.debug('sent update to %s' % ','.join(recipient_list))
if related_object is not None:
assert(activity_type is not None)
except Exception, error: