mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
Include exception info in SMS warning log
This makes it easier to debug failures when adding a new provider.
This commit is contained in:
@@ -24,7 +24,8 @@ def deliver_sms(self, notification_id):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
if isinstance(e, SmsClientResponseException):
|
if isinstance(e, SmsClientResponseException):
|
||||||
current_app.logger.warning(
|
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:
|
else:
|
||||||
current_app.logger.exception(
|
current_app.logger.exception(
|
||||||
|
|||||||
Reference in New Issue
Block a user