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?
This commit is contained in:
Marcin Grzejszczak
2015-05-04 16:55:11 +02:00
parent 3809bcbc90
commit eed9b996fb

View File

@@ -136,7 +136,7 @@ public class EurekaInstanceDiscovery implements InstanceDiscovery {
}
}
catch (Exception e) {
log.info("Failed to retrieve instances from Eureka");
log.warn("Failed to retrieve instances from Eureka", e);
}
return instances;
}