This is an automated email from the ASF dual-hosted git repository. liubao pushed a commit to branch 1.3.x in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git
commit 433804eb13787e1d0ae816d4c4a59b91a88bc91b Author: AngLi2 <[email protected]> AuthorDate: Thu Nov 14 20:14:50 2019 +0800 [SCB-1557] Fix application start info log incorrect --- .../servicecomb/core/bootup/AddressInformationCollector.java | 4 ++-- .../servicecomb/core/bootup/ServiceInformationCollector.java | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/src/main/java/org/apache/servicecomb/core/bootup/AddressInformationCollector.java b/core/src/main/java/org/apache/servicecomb/core/bootup/AddressInformationCollector.java index ca7cf7d..c8f79aa 100644 --- a/core/src/main/java/org/apache/servicecomb/core/bootup/AddressInformationCollector.java +++ b/core/src/main/java/org/apache/servicecomb/core/bootup/AddressInformationCollector.java @@ -23,9 +23,9 @@ import org.apache.servicecomb.deployment.SystemBootstrapInfo; public class AddressInformationCollector implements BootUpInformationCollector { @Override public String collect() { - return "service center: " + return "Service Center: " + getCenterInfo(Deployment.getSystemBootStrapInfo("ServiceCenter")) - + "\n" + "config center: " + + "\n" + "Config Center: " + getCenterInfo(Deployment.getSystemBootStrapInfo("ConfigCenter")); } diff --git a/core/src/main/java/org/apache/servicecomb/core/bootup/ServiceInformationCollector.java b/core/src/main/java/org/apache/servicecomb/core/bootup/ServiceInformationCollector.java index d1fd864..d299b92 100644 --- a/core/src/main/java/org/apache/servicecomb/core/bootup/ServiceInformationCollector.java +++ b/core/src/main/java/org/apache/servicecomb/core/bootup/ServiceInformationCollector.java @@ -24,12 +24,12 @@ public class ServiceInformationCollector implements BootUpInformationCollector { @Override public String collect() { - return "AppID: " + RegistryUtils.getMicroservice().getAppId() - + "\n" + "ServiceName: " + RegistryUtils.getMicroservice().getServiceName() + return "App ID: " + RegistryUtils.getMicroservice().getAppId() + + "\n" + "Service Name: " + RegistryUtils.getMicroservice().getServiceName() + "\n" + "Version: " + RegistryUtils.getMicroservice().getVersion() - + "\n" + "Environment: " + RegistryUtils.getMicroserviceInstance().getEnvironment() - + "\n" + "ServiceID: " + RegistryUtils.getMicroserviceInstance().getServiceId() - + "\n" + "InstanceID; " + RegistryUtils.getMicroserviceInstance().getInstanceId(); + + "\n" + "Environment: " + RegistryUtils.getMicroservice().getEnvironment() + + "\n" + "Service ID: " + RegistryUtils.getMicroserviceInstance().getServiceId() + + "\n" + "Instance ID: " + RegistryUtils.getMicroserviceInstance().getInstanceId(); } @Override
