mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-21 07:51:13 -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:
@@ -22,10 +22,12 @@ def process_mmg_response():
|
||||
raise InvalidRequest(errors, status_code=400)
|
||||
|
||||
status = str(data.get('status'))
|
||||
substatus = str(data.get('substatus'))
|
||||
|
||||
provider_reference = data.get('CID')
|
||||
|
||||
process_sms_client_response.apply_async(
|
||||
[status, provider_reference, client_name],
|
||||
[status, provider_reference, client_name, substatus],
|
||||
queue=QueueNames.SMS_CALLBACKS,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user