mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-18 06:11:49 -05:00
debug for notify-admin-1588
This commit is contained in:
@@ -11,7 +11,7 @@ from app.dao.notifications_dao import (
|
||||
)
|
||||
from app.enums import KeyType, NotificationStatus, NotificationType
|
||||
from app.models import Notification
|
||||
from app.utils import utc_now
|
||||
from app.utils import hilite, scrub, utc_now
|
||||
from app.v2.errors import BadRequestError
|
||||
from notifications_utils.recipients import (
|
||||
format_email_address,
|
||||
@@ -110,6 +110,7 @@ def persist_notification(
|
||||
formatted_recipient = validate_and_format_phone_number(
|
||||
recipient, international=True
|
||||
)
|
||||
current_app.logger.info(hilite(scrub(f"Persisting notification with recipient {formatted_recipient}")))
|
||||
recipient_info = get_international_phone_info(formatted_recipient)
|
||||
notification.normalised_to = formatted_recipient
|
||||
notification.international = recipient_info.international
|
||||
|
||||
Reference in New Issue
Block a user