Commit c752cc31 by Spencer Gibb

fix logging of initial eureka status

parent de9af2b4
...@@ -78,8 +78,8 @@ public class EurekaClientConfiguration implements SmartLifecycle, Ordered { ...@@ -78,8 +78,8 @@ public class EurekaClientConfiguration implements SmartLifecycle, Ordered {
//because of containerPortInitializer below //because of containerPortInitializer below
if (!running && instanceConfig.getNonSecurePort() > 0) { if (!running && instanceConfig.getNonSecurePort() > 0) {
discoveryManagerIntitializer().init(); discoveryManagerIntitializer().init();
logger.info("Registering application {} with eureka with status UP", logger.info("Registering application {} with eureka with status {}",
instanceConfig.getAppname()); instanceConfig.getAppname(), instanceConfig.getInitialStatus());
ApplicationInfoManager.getInstance().setInstanceStatus(instanceConfig.getInitialStatus()); ApplicationInfoManager.getInstance().setInstanceStatus(instanceConfig.getInitialStatus());
running = true; running = true;
} }
......
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