From dfda0fc92deef7cce07f19d5f0cec7e81fb3efc0 Mon Sep 17 00:00:00 2001 From: Akashdeep Goel Date: Mon, 24 Apr 2023 19:11:39 -0700 Subject: [PATCH] Adds logs to verify EurekaHostsSupplier --- .../java/com/netflix/dyno/contrib/EurekaHostsSupplier.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dyno-contrib/src/main/java/com/netflix/dyno/contrib/EurekaHostsSupplier.java b/dyno-contrib/src/main/java/com/netflix/dyno/contrib/EurekaHostsSupplier.java index 4fe7ce81..169b7dcf 100644 --- a/dyno-contrib/src/main/java/com/netflix/dyno/contrib/EurekaHostsSupplier.java +++ b/dyno-contrib/src/main/java/com/netflix/dyno/contrib/EurekaHostsSupplier.java @@ -79,6 +79,10 @@ private List getUpdateFromEureka() { } Logger.info("Dyno fetching instance list for app: " + applicationName); Application app = discoveryClient.getApplication(applicationName); + if (app != null) + Logger.info("Got application instances : " + app.getInstances().size()); + else + Logger.info("Got null application"); List hosts = new ArrayList(); if (app == null) {