Merge pull request #2860 from alphagov/put-status-codes-in-logs

Put status codes in logs
This commit is contained in:
Pea M. Tyczynska
2020-06-02 16:06:05 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -38,8 +38,8 @@ def process_sms_client_response(self, status, provider_reference, client_name, d
try:
notification_status, detailed_status = response_parser(status, detailed_status_code)
current_app.logger.info(
f'{client_name} callback returned '
f'status of {notification_status}: {detailed_status} for reference: {provider_reference}'
f'{client_name} callback returned status of {notification_status}'
f'({status}): {detailed_status}({detailed_status_code}) for reference: {provider_reference}'
)
except KeyError:
_process_for_status(