mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
Log detailed sms delivery status for mmg from process_sms_client_response task.
Also log detailed delivery status for firetext in the same place in addition to it being logged from notifications_dao. Logging detailed delivery statuses will help us see why messages fail to deliver. In the future we could persist detailed delivery status in the database.
This commit is contained in:
@@ -33,8 +33,9 @@ firetext_codes = {
|
||||
}
|
||||
|
||||
|
||||
def get_firetext_responses(status):
|
||||
return firetext_responses[status]
|
||||
def get_firetext_responses(status, code=None):
|
||||
substatus = firetext_codes[code]['reason'] if firetext_codes.get(code, None) else None
|
||||
return firetext_responses[status], substatus
|
||||
|
||||
|
||||
def get_message_status_and_reason_from_firetext_code(code):
|
||||
|
||||
Reference in New Issue
Block a user