Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
1.2.3
-
Aws Lambda
Description
When configuring logback via a logback.groovy, the first thing that the GafferConfigurator does is call binding.setProperty("hostname", ContextUtil.localHostName);.
In a serverless environment, such as AWS Lambda, this fails with a UnknownHostException. As I understand it Lambdas don't have hostnames as they can't be addressed from the internet.
We should either wrap this line in a try/catch or move the hostname resolution to where it is used.