From 17337dfc7271f94b05d11c1c7b25152c4ac8abd9 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Tue, 12 Nov 2024 13:14:43 -0800 Subject: [PATCH] add debugging --- app/clients/sms/aws_sns.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/clients/sms/aws_sns.py b/app/clients/sms/aws_sns.py index 8b5d6c963..cc891c031 100644 --- a/app/clients/sms/aws_sns.py +++ b/app/clients/sms/aws_sns.py @@ -64,11 +64,15 @@ class AwsSnsClient(SmsClient): } if self._valid_sender_number(sender): + self.current_app.logger.info("aws_sns found a valid sender number!") attributes["AWS.MM.SMS.OriginationNumber"] = { "DataType": "String", "StringValue": sender, } 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"] = { "DataType": "String", "StringValue": self.current_app.config["AWS_US_TOLL_FREE_NUMBER"],