From 3804b683046016f5d1ac2f51d63ada2ed5b7947b Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Wed, 28 Nov 2012 13:57:30 -0300 Subject: added logging statement to send_mail --- askbot/mail/__init__.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- cgit v1.2.3-1-g7c22