more debugging messages

This commit is contained in:
Kenneth Kehl
2024-01-11 13:22:13 -08:00
parent 6ab8d556e5
commit efe4cd589c
2 changed files with 5 additions and 0 deletions

View File

@@ -81,8 +81,10 @@ class AwsSnsClient(SmsClient):
PhoneNumber=to, Message=content, MessageAttributes=attributes
)
except botocore.exceptions.ClientError as e:
self.current_app.logger.error(e)
raise str(e)
except Exception as e:
self.current_app.logger(e)
raise str(e)
finally:
elapsed_time = monotonic() - start_time