mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
Switch order of service and inbound_sms_id in message.
Added service id to retry message
This commit is contained in:
@@ -537,8 +537,8 @@ def send_inbound_sms_to_service(self, inbound_sms_id, service_id):
|
|||||||
except RequestException as e:
|
except RequestException as e:
|
||||||
current_app.logger.warning(
|
current_app.logger.warning(
|
||||||
"send_inbound_sms_to_service failed for service_id: {} for inbound_sms_id: {} and url: {}. exc: {}".format(
|
"send_inbound_sms_to_service failed for service_id: {} for inbound_sms_id: {} and url: {}. exc: {}".format(
|
||||||
inbound_sms_id,
|
|
||||||
service_id,
|
service_id,
|
||||||
|
inbound_sms_id,
|
||||||
inbound_api.url,
|
inbound_api.url,
|
||||||
e
|
e
|
||||||
)
|
)
|
||||||
@@ -548,7 +548,9 @@ def send_inbound_sms_to_service(self, inbound_sms_id, service_id):
|
|||||||
self.retry(queue=QueueNames.RETRY)
|
self.retry(queue=QueueNames.RETRY)
|
||||||
except self.MaxRetriesExceededError:
|
except self.MaxRetriesExceededError:
|
||||||
current_app.logger.error(
|
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
|
inbound_sms_id
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user