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

@@ -151,8 +151,6 @@ def persist_notification(
def send_notification_to_queue_detached(
key_type, notification_type, notification_id, queue=None
):
if key_type == KeyType.TEST:
print("send_notification_to_queue_detached key is test key")
if notification_type == NotificationType.SMS:
if not queue:

View File

@@ -117,7 +117,7 @@ def fetch_potential_service(inbound_number, provider_name):
if not has_inbound_sms_permissions(service.permissions):
current_app.logger.error(
'Service "{}" does not allow inbound SMS'.format(service.id)
'Service "{}" does not allow inbound SMS'.format(service.id), exc_info=True
)
return False

View File

@@ -47,7 +47,8 @@ def sns_notification_handler(data, headers):
validate_sns_cert(message)
except Exception as e:
current_app.logger.error(
f"SES-SNS callback failed: validation failed with error: Signature validation failed with error {e}"
f"SES-SNS callback failed: validation failed with error: Signature validation failed",
exc_info=True,
)
raise InvalidRequest("SES-SNS callback failed: validation failed", 400)