diff options
author | Leif Johansson <leifj@sunet.se> | 2012-02-10 13:00:38 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-02-10 13:00:38 +0100 |
commit | 51ea44d3ff328ab9cb364adf71c39349e7a90070 (patch) | |
tree | a7fc8aa5e926ae028a3bb7ad31775b520cde4d10 | |
parent | 8c6b3e68a1866642a8c6e1366237f47f8392c916 (diff) |
log error when email fails
-rw-r--r-- | src/meetingtools/apps/room/tasks.py | 1 |
1 files changed, 1 insertions, 0 deletions
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="*")) |