remove whitespace from log line

multi line strings don't handle indentation
This commit is contained in:
Leo Hemsted
2020-06-24 12:41:56 +01:00
parent d108c644bc
commit 6318cd2a84

View File

@@ -597,11 +597,8 @@ 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 service: {} and inbound_sms {}""".format(
service_id,
inbound_sms_id
)
f"Retry: send_inbound_sms_to_service has retried the max number of" +
f"times for service: {service_id} and inbound_sms {inbound_sms_id}"
)