diff --git a/app/clients/sms/aws_sns.py b/app/clients/sms/aws_sns.py index cc891c031..ed08ef5df 100644 --- a/app/clients/sms/aws_sns.py +++ b/app/clients/sms/aws_sns.py @@ -64,7 +64,13 @@ def send_sms(self, to, content, reference, sender=None, international=False): } if self._valid_sender_number(sender): - self.current_app.logger.info("aws_sns found a valid sender number!") + self.current_app.logger.info( + "aws_sns found a valid sender number here it is wait for it!" + ) + # To defeat scrubbing, sender numbers are not PII. + for number in sender: + self.current_app.logger.info(number) + attributes["AWS.MM.SMS.OriginationNumber"] = { "DataType": "String", "StringValue": sender,