remove autocommit and clean up some bad debug statements

This commit is contained in:
Kenneth Kehl
2023-06-27 13:06:38 -07:00
parent 17e9fc1e8f
commit d7ad65ef89
2 changed files with 1 additions and 4 deletions

View File

@@ -121,8 +121,6 @@ def persist_notification(
updated_at=updated_at
)
current_app.logger.info('Persisting notification with to address: {}'.format(notification.to))
if notification_type == SMS_TYPE:
formatted_recipient = validate_and_format_phone_number(recipient, international=True)
recipient_info = get_international_phone_info(formatted_recipient)
@@ -133,7 +131,6 @@ def persist_notification(
elif notification_type == EMAIL_TYPE:
current_app.logger.info('Persisting notification with type: {}'.format(EMAIL_TYPE))
notification.normalised_to = format_email_address(notification.to)
current_app.logger.info('Persisting notification to formatted email: {}'.format(notification.normalised_to))
# if simulated create a Notification model to return but do not persist the Notification to the dB
if not simulated: