Merge pull request #2550 from alphagov/degrade_alert_to_warning

Degrade MaxRetriesExceededError to warning status in logger
This commit is contained in:
Pea (Malgorzata Tyczynska)
2019-06-27 15:46:51 +01:00
committed by GitHub

View File

@@ -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,