mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
log the bounce message from SES
This commit is contained in:
@@ -56,6 +56,7 @@ def process_ses_response(ses_request):
|
|||||||
|
|
||||||
notification_type = ses_message['notificationType']
|
notification_type = ses_message['notificationType']
|
||||||
if notification_type == 'Bounce':
|
if notification_type == 'Bounce':
|
||||||
|
current_app.logger.info('SES bounce dict: {}'.format(ses_message['bounce']))
|
||||||
if ses_message['bounce']['bounceType'] == 'Permanent':
|
if ses_message['bounce']['bounceType'] == 'Permanent':
|
||||||
notification_type = ses_message['bounce']['bounceType'] # permanent or not
|
notification_type = ses_message['bounce']['bounceType'] # permanent or not
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user