Skip to content

Commit

Permalink
Merge pull request #162 from uktrade/remove-logs-with-attachment-data
Browse files Browse the repository at this point in the history
Remove logging of full EmailMessageDTO list
  • Loading branch information
kevincarrogan authored Sep 5, 2022
2 parents d28d3e2 + 9d7c2e9 commit 9917ede
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mail/libraries/routing_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def check_and_route_emails():
hmrc_to_dit_server = get_hmrc_to_dit_mailserver()
email_message_dtos = get_email_message_dtos(hmrc_to_dit_server, number=None)
email_message_dtos = sort_dtos_by_date(email_message_dtos)
logger.info("Incoming message dtos sorted by date: %s", email_message_dtos)

spire_to_dit_server = get_spire_to_dit_mailserver()
if hmrc_to_dit_server != spire_to_dit_server:
Expand All @@ -96,7 +95,6 @@ def check_and_route_emails():
# same emails.
reply_message_dtos = get_email_message_dtos(spire_to_dit_server)
reply_message_dtos = sort_dtos_by_date(reply_message_dtos)
logger.info("Reply message dtos sorted by date: %s", reply_message_dtos)

email_message_dtos.extend(reply_message_dtos)

Expand Down

0 comments on commit 9917ede

Please sign in to comment.