mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Change error log to exception log for pdfs failing virus scans
This commit is contained in:
@@ -179,7 +179,7 @@ def process_virus_scan_passed(filename):
|
||||
|
||||
@notify_celery.task(name='process-virus-scan-failed')
|
||||
def process_virus_scan_failed(filename):
|
||||
current_app.logger.error('Virus scan failed: {}'.format(filename))
|
||||
current_app.logger.exception('Virus scan failed: {}'.format(filename))
|
||||
delete_pdf_from_letters_scan_bucket(filename)
|
||||
reference = get_reference_from_filename(filename)
|
||||
updated_count = update_letter_pdf_status(reference, NOTIFICATION_VIRUS_SCAN_FAILED)
|
||||
|
||||
Reference in New Issue
Block a user