Fix incorrect log line

Should have been `lambda_name` not `self.lambda_name`.
This commit is contained in:
David McDonald
2021-01-15 16:48:04 +00:00
parent 9c01d8018d
commit b9ec70acc2

View File

@@ -131,13 +131,13 @@ class CBCProxyClientBase(ABC):
if result['StatusCode'] > 299:
current_app.logger.info(
f"Error calling lambda {self.lambda_name} with status code { result['StatusCode']}, {result.get('Payload')}"
f"Error calling lambda {lambda_name} with status code { result['StatusCode']}, {result.get('Payload')}"
)
success = False
elif 'FunctionError' in result:
current_app.logger.info(
f"Error calling lambda {self.lambda_name} with function error { result['Payload'] }"
f"Error calling lambda {lambda_name} with function error { result['Payload'] }"
)
success = False