mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-09 09:39:50 -04:00
Merge pull request #3401 from alphagov/hide-log-line
don't log if we dont delete anything for a service
This commit is contained in:
@@ -136,14 +136,15 @@ def delete_notifications_for_service_and_type(service_id, notification_type, dat
|
|||||||
service_id,
|
service_id,
|
||||||
datetime_to_delete_before,
|
datetime_to_delete_before,
|
||||||
)
|
)
|
||||||
end = datetime.utcnow()
|
if num_deleted:
|
||||||
current_app.logger.info(
|
end = datetime.utcnow()
|
||||||
f'delete-notifications-for-service-and-type: '
|
current_app.logger.info(
|
||||||
f'service: {service_id}, '
|
f'delete-notifications-for-service-and-type: '
|
||||||
f'notification_type: {notification_type}, '
|
f'service: {service_id}, '
|
||||||
f'count deleted: {num_deleted}, '
|
f'notification_type: {notification_type}, '
|
||||||
f'duration: {(end - start).seconds} seconds'
|
f'count deleted: {num_deleted}, '
|
||||||
)
|
f'duration: {(end - start).seconds} seconds'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@notify_celery.task(name='timeout-sending-notifications')
|
@notify_celery.task(name='timeout-sending-notifications')
|
||||||
|
|||||||
Reference in New Issue
Block a user