This commit is contained in:
nkorange 2019-04-15 10:49:41 +08:00
parent ffa1da871d
commit eca0ea5760

View File

@ -165,6 +165,9 @@ public class ServerListManager {
} }
public synchronized void onReceiveServerStatus(String configInfo) { public synchronized void onReceiveServerStatus(String configInfo) {
Loggers.SRV_LOG.info("receive config info: {}", configInfo);
String[] configs = configInfo.split("\r\n"); String[] configs = configInfo.split("\r\n");
if (configs.length == 0) { if (configs.length == 0) {
return; return;
@ -274,7 +277,8 @@ public class ServerListManager {
// for every change disable healthy check for some while // for every change disable healthy check for some while
if (switchDomain.isHealthCheckEnabled()) { if (switchDomain.isHealthCheckEnabled()) {
Loggers.SRV_LOG.info("[NACOS-DISTRO] healthy server list changed, " + Loggers.SRV_LOG.info("[NACOS-DISTRO] healthy server list changed, " +
"disable health check for {} ms from now on", STABLE_PERIOD); "disable health check for {} ms from now on, old: {}, new: {}", STABLE_PERIOD,
healthyServers, newHealthyList);
switchDomain.setHealthCheckEnabled(false); switchDomain.setHealthCheckEnabled(false);
autoDisabledHealthCheck = true; autoDisabledHealthCheck = true;