mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
Merge pull request #2550 from alphagov/degrade_alert_to_warning
Degrade MaxRetriesExceededError to warning status in logger
This commit is contained in:
@@ -96,7 +96,7 @@ def _send_data_to_service_callback_api(self, data, service_callback_url, token,
|
|||||||
try:
|
try:
|
||||||
self.retry(queue=QueueNames.RETRY)
|
self.retry(queue=QueueNames.RETRY)
|
||||||
except self.MaxRetriesExceededError:
|
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(
|
"Retry: {} has retried the max num of times for callback url {} and notification_id: {}".format(
|
||||||
function_name,
|
function_name,
|
||||||
service_callback_url,
|
service_callback_url,
|
||||||
|
|||||||
Reference in New Issue
Block a user