diff --git a/app/celery/tasks.py b/app/celery/tasks.py index 70c72412a..68976d9bc 100644 --- a/app/celery/tasks.py +++ b/app/celery/tasks.py @@ -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 ) )