From 1f317b671793c694569251104d3cf0c3e5c722e2 Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Thu, 16 Nov 2017 17:46:58 +0000 Subject: [PATCH] log the bounce message from SES --- app/notifications/notifications_ses_callback.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/notifications/notifications_ses_callback.py b/app/notifications/notifications_ses_callback.py index 78884dbee..f726f50f9 100644 --- a/app/notifications/notifications_ses_callback.py +++ b/app/notifications/notifications_ses_callback.py @@ -56,6 +56,7 @@ def process_ses_response(ses_request): notification_type = ses_message['notificationType'] if notification_type == 'Bounce': + current_app.logger.info('SES bounce dict: {}'.format(ses_message['bounce'])) if ses_message['bounce']['bounceType'] == 'Permanent': notification_type = ses_message['bounce']['bounceType'] # permanent or not else: