mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-16 10:12:32 -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:
@@ -36,9 +36,10 @@ def process_sms_client_response(self, status, provider_reference, client_name, c
|
||||
|
||||
# validate status
|
||||
try:
|
||||
notification_status = response_parser(status)
|
||||
notification_status, detailed_status = response_parser(status, code)
|
||||
current_app.logger.info(
|
||||
f'{client_name} callback returned status of {status} for reference: {provider_reference}'
|
||||
f'{client_name} callback returned '
|
||||
f'status of {notification_status}: {detailed_status} for reference: {provider_reference}'
|
||||
)
|
||||
except KeyError:
|
||||
_process_for_status(
|
||||
|
||||
Reference in New Issue
Block a user