mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-09 14:49:49 -04:00
Add better logging message for tech failure
So we can easily identify which notification ID failed
This commit is contained in:
@@ -48,7 +48,9 @@ def deliver_email(self, notification_id):
|
|||||||
raise NoResultFound()
|
raise NoResultFound()
|
||||||
send_to_providers.send_email_to_provider(notification)
|
send_to_providers.send_email_to_provider(notification)
|
||||||
except EmailClientNonRetryableException as e:
|
except EmailClientNonRetryableException as e:
|
||||||
current_app.logger.exception(e)
|
current_app.logger.exception(
|
||||||
|
f"Email notification {notification_id} failed: {e}"
|
||||||
|
)
|
||||||
update_notification_status_by_id(notification_id, 'technical-failure')
|
update_notification_status_by_id(notification_id, 'technical-failure')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user