This commit is contained in:
Kenneth Kehl
2024-08-15 10:31:02 -07:00
parent 714f6f1588
commit 146f0cc787
20 changed files with 113 additions and 92 deletions

View File

@@ -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()

View File

@@ -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