mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-21 07:51:13 -05:00
debug messages
This commit is contained in:
@@ -82,6 +82,8 @@ def send_sms_to_provider(notification):
|
|||||||
|
|
||||||
if my_phone:
|
if my_phone:
|
||||||
my_phone = my_phone.decode("utf-8")
|
my_phone = my_phone.decode("utf-8")
|
||||||
|
# TODO REMOVE
|
||||||
|
current_app.logger.info(f"IN SEND TO PROVIDERS, WHERE WE GET THE VALUE, KEY IS {key} and value is {my_phone}")
|
||||||
if my_phone is None:
|
if my_phone is None:
|
||||||
si = notification.service_id
|
si = notification.service_id
|
||||||
ji = notification.job_id
|
ji = notification.job_id
|
||||||
|
|||||||
@@ -353,8 +353,13 @@ def create_2fa_code(
|
|||||||
|
|
||||||
key = f"2facode-{saved_notification.id}".replace(" ", "")
|
key = f"2facode-{saved_notification.id}".replace(" ", "")
|
||||||
recipient = str(recipient)
|
recipient = str(recipient)
|
||||||
|
# TODO REMOVE
|
||||||
|
current_app.logger.info(f"IN REST, WHERE WE SET THE VALUE, KEY IS {key} and value is {recipient}")
|
||||||
redis_store.set(key, recipient)
|
redis_store.set(key, recipient)
|
||||||
stored_recipient = redis_store.get(key)
|
stored_recipient = redis_store.get(key)
|
||||||
|
# TODO REMOVE
|
||||||
|
current_app.logger.info(f"IN REST, WHERE WE GET THE VALUE, KEY IS {key} and value is {stored_recipient}")
|
||||||
|
|
||||||
if stored_recipient:
|
if stored_recipient:
|
||||||
current_app.logger.info("IN user/rest.py we saved the recipient of the 2facode to redis!")
|
current_app.logger.info("IN user/rest.py we saved the recipient of the 2facode to redis!")
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user