Merge pull request #3097 from alphagov/proxy-client-fix

Fix incorrect log line
This commit is contained in:
David McDonald
2021-01-19 10:20:18 +00:00
committed by GitHub

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