mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Degrade MaxRetriesExceededError to warning status in logger
This is because that error is caused by our providers and we cannot do anything about it but it can make our logs hard to read and actionable errors harder to spot
This commit is contained in:
@@ -96,7 +96,7 @@ def _send_data_to_service_callback_api(self, data, service_callback_url, token,
|
||||
try:
|
||||
self.retry(queue=QueueNames.RETRY)
|
||||
except self.MaxRetriesExceededError:
|
||||
current_app.logger.error(
|
||||
current_app.logger.warning(
|
||||
"Retry: {} has retried the max num of times for callback url {} and notification_id: {}".format(
|
||||
function_name,
|
||||
service_callback_url,
|
||||
|
||||
Reference in New Issue
Block a user