more exc_info

This commit is contained in:
Kenneth Kehl
2024-08-15 11:07:36 -07:00
parent 6aed01ea20
commit c0ab7c8a68
12 changed files with 30 additions and 24 deletions

View File

@@ -114,7 +114,7 @@ def process_ses_results(self, response):
raise
except Exception as e:
current_app.logger.exception("Error processing SES results: {}".format(type(e)))
current_app.logger.exception("Error processing SES results", exc_info=True)
self.retry(queue=QueueNames.RETRY)
@@ -206,7 +206,7 @@ def handle_complaint(ses_message):
reference = ses_message["mail"]["messageId"]
except KeyError as e:
current_app.logger.exception(
f"Complaint from SES failed to get reference from message with error: {e}"
f"Complaint from SES failed to get reference from message", exc_info=True
)
return
notification = dao_get_notification_history_by_reference(reference)