mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -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:
|
||||
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(
|
||||
|
||||
Reference in New Issue
Block a user