From e033f3300b84a448b50a14c50308fd612d763030 Mon Sep 17 00:00:00 2001 From: Pea Tyczynska Date: Thu, 27 Jun 2019 14:55:10 +0100 Subject: [PATCH] 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 --- app/celery/service_callback_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/celery/service_callback_tasks.py b/app/celery/service_callback_tasks.py index df8676512..10694635a 100644 --- a/app/celery/service_callback_tasks.py +++ b/app/celery/service_callback_tasks.py @@ -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,