mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
initial
This commit is contained in:
@@ -41,7 +41,8 @@ class PerformancePlatformClient:
|
||||
current_app.logger.error(
|
||||
"Performance platform update request failed for payload with response details: {} '{}'".format(
|
||||
json.dumps(payload), resp.status_code
|
||||
)
|
||||
),
|
||||
exc_info=True,
|
||||
)
|
||||
resp.raise_for_status()
|
||||
|
||||
|
||||
@@ -81,10 +81,14 @@ class AwsSnsClient(SmsClient):
|
||||
PhoneNumber=to, Message=content, MessageAttributes=attributes
|
||||
)
|
||||
except botocore.exceptions.ClientError as e:
|
||||
self.current_app.logger.error(e)
|
||||
self.current_app.logger.error(
|
||||
"An error occurred sending sms", exc_info=True
|
||||
)
|
||||
raise str(e)
|
||||
except Exception as e:
|
||||
self.current_app.logger(e)
|
||||
self.current_app.logger.error(
|
||||
"An error occurred sending sms", exc_info=True
|
||||
)
|
||||
raise str(e)
|
||||
finally:
|
||||
elapsed_time = monotonic() - start_time
|
||||
|
||||
Reference in New Issue
Block a user