Commit eed9b996 by Marcin Grzejszczak

Reason why Eureka instance is not found is not visible

With the following configuration at `bootstrap.yaml` ```yaml spring: application.name: spring-cloud-hystrix-dashboard profiles.active: prod cloud: config: discovery: enabled: true serviceId: spring-cloud-server-config-with-eureka server.port: 9003 turbine: appConfig: some-service clusterNameExpression: 'default' ``` I wasn't able to see why Turbine can't find the instance. The reason was related to SPEL: ``` org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 0): Property or field 'default' cannot be found on object of type 'com.netflix.appinfo.InstanceInfo' - maybe not public? ``` Anyways there was nothing there in the logs so maybe it should not be silenced like right now?
parent 3809bcbc
...@@ -136,7 +136,7 @@ public class EurekaInstanceDiscovery implements InstanceDiscovery { ...@@ -136,7 +136,7 @@ public class EurekaInstanceDiscovery implements InstanceDiscovery {
} }
} }
catch (Exception e) { catch (Exception e) {
log.info("Failed to retrieve instances from Eureka"); log.warn("Failed to retrieve instances from Eureka", e);
} }
return instances; return instances;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment