From 3988a6cd073bdcb1b1b9672c695470696095ae20 Mon Sep 17 00:00:00 2001 From: Ben Thorner Date: Fri, 25 Mar 2022 12:35:22 +0000 Subject: [PATCH] Include exception info in SMS warning log This makes it easier to debug failures when adding a new provider. --- app/celery/provider_tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/celery/provider_tasks.py b/app/celery/provider_tasks.py index 1b1bf6894..a274635ce 100644 --- a/app/celery/provider_tasks.py +++ b/app/celery/provider_tasks.py @@ -24,7 +24,8 @@ def deliver_sms(self, notification_id): except Exception as e: if isinstance(e, SmsClientResponseException): current_app.logger.warning( - "SMS notification delivery for id: {} failed".format(notification_id) + "SMS notification delivery for id: {} failed".format(notification_id), + exc_info=True ) else: current_app.logger.exception(