mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-24 16:23:44 -04:00
Merge pull request #3441 from alphagov/move-log-message
Moved log message inside the if statement where it actually happens.
This commit is contained in:
@@ -430,10 +430,9 @@ def process_precompiled_letter_notifications(*, letter_data, api_key, service, t
|
|||||||
'postage': notification.postage
|
'postage': notification.postage
|
||||||
}
|
}
|
||||||
|
|
||||||
current_app.logger.info('Calling task scan-file for {}'.format(filename))
|
|
||||||
|
|
||||||
# call task to add the filename to anti virus queue
|
# call task to add the filename to anti virus queue
|
||||||
if current_app.config['ANTIVIRUS_ENABLED']:
|
if current_app.config['ANTIVIRUS_ENABLED']:
|
||||||
|
current_app.logger.info('Calling task scan-file for {}'.format(filename))
|
||||||
notify_celery.send_task(
|
notify_celery.send_task(
|
||||||
name=TaskNames.SCAN_FILE,
|
name=TaskNames.SCAN_FILE,
|
||||||
kwargs={'filename': filename},
|
kwargs={'filename': filename},
|
||||||
|
|||||||
Reference in New Issue
Block a user