Switch order of service and inbound_sms_id in message.

Added service id to retry message
This commit is contained in:
Rebecca Law
2018-10-24 16:19:17 +01:00
parent 77d1bc73b5
commit 5459009f5a

View File

@@ -537,8 +537,8 @@ def send_inbound_sms_to_service(self, inbound_sms_id, service_id):
except RequestException as e:
current_app.logger.warning(
"send_inbound_sms_to_service failed for service_id: {} for inbound_sms_id: {} and url: {}. exc: {}".format(
inbound_sms_id,
service_id,
inbound_sms_id,
inbound_api.url,
e
)
@@ -548,7 +548,9 @@ def send_inbound_sms_to_service(self, inbound_sms_id, service_id):
self.retry(queue=QueueNames.RETRY)
except self.MaxRetriesExceededError:
current_app.logger.error(
'Retry: send_inbound_sms_to_service has retried the max number of times for inbound_sms {}'.format(
"""Retry: send_inbound_sms_to_service has retried the max number of
times for service: {} and inbound_sms {}""".format(
service_id,
inbound_sms_id
)
)