Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
java-chassis-1.3.0
-
None
-
None
Description
Now the microservice instance will print some information after it is registered on service-center successfully. The information printed is collected by the implementations of BootUpInformationCollector.
But the environment item collected by ServiceInformationCollector is wrong, as a result, no matter which environment the microservice instance is in, the env printed in the banner is always "production". The root cause is that ServiceInformationCollector get env from MicroserviceInstance#environment, which is abandoned.
ServiceInformationCollector should get correct env from Microservice#environment.