|
|
@@ -35,7 +35,7 @@ public class SpringLifecycle implements ApplicationRunner, DisposableBean {
|
|
|
// 通过环境变量 SERVER_ADDRESS=192.168.0.10 指定
|
|
|
String serverAddress = System.getenv("SERVER_ADDRESS");
|
|
|
if (!ipv4AddressSet.contains(serverAddress)) {
|
|
|
- log.error("没有通过环境变量 SERVER_ADDRESS 指定地址, 或是指定的地址不是机器地址, 结束 MessageService 进程...");
|
|
|
+ log.error("没有通过环境变量 SERVER_ADDRESS 指定地址, 或是指定的地址不是机器地址 {}, 结束 MessageService 进程...", ipv4AddressSet);
|
|
|
System.exit(SpringApplication.exit(applicationContext));
|
|
|
}
|
|
|
|