mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
change failed virus scan log to error
This commit is contained in:
@@ -171,7 +171,7 @@ def process_virus_scan_passed(filename):
|
|||||||
|
|
||||||
@notify_celery.task(name='process-virus-scan-failed')
|
@notify_celery.task(name='process-virus-scan-failed')
|
||||||
def process_virus_scan_failed(filename):
|
def process_virus_scan_failed(filename):
|
||||||
current_app.logger.info('Virus scan failed: {}'.format(filename))
|
current_app.logger.error('Virus scan failed: {}'.format(filename))
|
||||||
delete_pdf_from_letters_scan_bucket(filename)
|
delete_pdf_from_letters_scan_bucket(filename)
|
||||||
reference = get_reference_from_filename(filename)
|
reference = get_reference_from_filename(filename)
|
||||||
updated_count = update_letter_pdf_status(reference, NOTIFICATION_PERMANENT_FAILURE)
|
updated_count = update_letter_pdf_status(reference, NOTIFICATION_PERMANENT_FAILURE)
|
||||||
|
|||||||
Reference in New Issue
Block a user