Revert change to exception log.

This commit is contained in:
Rebecca Law
2018-03-26 16:44:29 +01:00
parent 598539dcb3
commit c75458cee9

View File

@@ -30,7 +30,7 @@ def deliver_sms(self, notification_id):
except Exception as e:
try:
current_app.logger.exception(
"SMS notification delivery for id: {} failed".format(notification_id), e
"SMS notification delivery for id: {} failed".format(notification_id)
)
self.retry(queue=QueueNames.RETRY)
except self.MaxRetriesExceededError:
@@ -55,7 +55,7 @@ def deliver_email(self, notification_id):
except Exception as e:
try:
current_app.logger.exception(
"RETRY: Email notification {} failed".format(notification_id), e
"RETRY: Email notification {} failed".format(notification_id)
)
self.retry(queue=QueueNames.RETRY)
except self.MaxRetriesExceededError: