mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-17 02:32:32 -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)
|
||||
except self.MaxRetriesExceededError:
|
||||
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):
|
||||
@@ -135,4 +137,7 @@ def process_update_with_notification_id(self, notification_id):
|
||||
try:
|
||||
self.retry(queue=QueueNames.RETRY)
|
||||
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],
|
||||
queue=QueueNames.CALLBACKS)
|
||||
|
||||
print("Replay service status for service: {}. Sent {} notification status updates".format(service_id,
|
||||
len(notifications)))
|
||||
print("Replay service status for service: {}. Sent {} notification status updates to the queue".format(
|
||||
service_id, len(notifications)))
|
||||
|
||||
|
||||
def setup_commands(application):
|
||||
|
||||
Reference in New Issue
Block a user