mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 08:21:13 -05:00
Don't log address redaction failure when letter sent with test key
This commit is contained in:
@@ -228,7 +228,7 @@ def process_virus_scan_passed(self, filename):
|
||||
new_pdf = sanitise_response.content
|
||||
|
||||
redaction_failed_message = sanitise_response.get("redaction_failed_message")
|
||||
if redaction_failed_message:
|
||||
if redaction_failed_message and not is_test_key:
|
||||
current_app.logger.info('{} for notification id {} ({})'.format(
|
||||
redaction_failed_message, notification.id, filename)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user