mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -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:
|
||||
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
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user