mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
add debugging
This commit is contained in:
@@ -64,11 +64,15 @@ class AwsSnsClient(SmsClient):
|
|||||||
}
|
}
|
||||||
|
|
||||||
if self._valid_sender_number(sender):
|
if self._valid_sender_number(sender):
|
||||||
|
self.current_app.logger.info("aws_sns found a valid sender number!")
|
||||||
attributes["AWS.MM.SMS.OriginationNumber"] = {
|
attributes["AWS.MM.SMS.OriginationNumber"] = {
|
||||||
"DataType": "String",
|
"DataType": "String",
|
||||||
"StringValue": sender,
|
"StringValue": sender,
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
|
self.current_app.logger.info(
|
||||||
|
"aws_sns did not find a valid sender number, defaulting to the toll free one"
|
||||||
|
)
|
||||||
attributes["AWS.MM.SMS.OriginationNumber"] = {
|
attributes["AWS.MM.SMS.OriginationNumber"] = {
|
||||||
"DataType": "String",
|
"DataType": "String",
|
||||||
"StringValue": self.current_app.config["AWS_US_TOLL_FREE_NUMBER"],
|
"StringValue": self.current_app.config["AWS_US_TOLL_FREE_NUMBER"],
|
||||||
|
|||||||
Reference in New Issue
Block a user