mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 18:31:13 -05:00
Improve log message
This commit is contained in:
@@ -73,7 +73,9 @@ def send_delivery_status_to_service(self, notification_id,
|
|||||||
self.retry(queue=QueueNames.RETRY)
|
self.retry(queue=QueueNames.RETRY)
|
||||||
except self.MaxRetriesExceededError:
|
except self.MaxRetriesExceededError:
|
||||||
current_app.logger.exception(
|
current_app.logger.exception(
|
||||||
'Retry: send_delivery_status_to_service has retried the max num of times')
|
"""Retry: send_delivery_status_to_service has retried the max num of times
|
||||||
|
for notification: {}""".format(notification_id)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def process_update_with_notification_id(self, notification_id):
|
def process_update_with_notification_id(self, notification_id):
|
||||||
@@ -135,4 +137,7 @@ def process_update_with_notification_id(self, notification_id):
|
|||||||
try:
|
try:
|
||||||
self.retry(queue=QueueNames.RETRY)
|
self.retry(queue=QueueNames.RETRY)
|
||||||
except self.MaxRetriesExceededError:
|
except self.MaxRetriesExceededError:
|
||||||
current_app.logger.exception('Retry: send_delivery_status_to_service has retried the max num of times')
|
current_app.logger.exception(
|
||||||
|
"""Retry: send_delivery_status_to_service has retried the max num of times
|
||||||
|
for notification: {}""".format(notification_id)
|
||||||
|
)
|
||||||
|
|||||||
@@ -361,8 +361,8 @@ def replay_service_callbacks(file_name, service_id):
|
|||||||
send_delivery_status_to_service.apply_async([str(n.id), encrypted_status_update],
|
send_delivery_status_to_service.apply_async([str(n.id), encrypted_status_update],
|
||||||
queue=QueueNames.CALLBACKS)
|
queue=QueueNames.CALLBACKS)
|
||||||
|
|
||||||
print("Replay service status for service: {}. Sent {} notification status updates".format(service_id,
|
print("Replay service status for service: {}. Sent {} notification status updates to the queue".format(
|
||||||
len(notifications)))
|
service_id, len(notifications)))
|
||||||
|
|
||||||
|
|
||||||
def setup_commands(application):
|
def setup_commands(application):
|
||||||
|
|||||||
Reference in New Issue
Block a user