From 51ea44d3ff328ab9cb364adf71c39349e7a90070 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Fri, 10 Feb 2012 13:00:38 +0100 Subject: log error when email fails --- src/meetingtools/apps/room/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/meetingtools/apps/room/tasks.py b/src/meetingtools/apps/room/tasks.py index 6506cbf..bf8e837 100644 --- a/src/meetingtools/apps/room/tasks.py +++ b/src/meetingtools/apps/room/tasks.py @@ -209,6 +209,7 @@ def send_message(user,subject,message): except ObjectDoesNotExist: logging.info("User %s has no profile - email not sent" % user.username) except Exception,exc: + logging.error("Error while sending email: \n%s" % exc) send_message.retry(exc=exc) @periodic_task(run_every=crontab(hour="*", minute="*", day_of_week="*")) -- cgit v1.1