mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-11 10:28:55 -04:00
Merge pull request #1899 from alphagov/fix-bounce-logging
Fix logging for a bounce message
This commit is contained in:
@@ -95,7 +95,8 @@ def process_ses_response(ses_request):
|
|||||||
|
|
||||||
|
|
||||||
def determine_notification_bounce_type(notification_type, ses_message):
|
def determine_notification_bounce_type(notification_type, ses_message):
|
||||||
current_app.logger.info('SES bounce dict: {}'.format(remove_emails_from_bounce(ses_message['bounce'])))
|
remove_emails_from_bounce(ses_message['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