fix : add log error message

pull/655/head
pizihao 3 years ago
parent e7e540a44f
commit ba25903156

@ -95,10 +95,10 @@ public abstract class AbstractRefreshListener<M> implements RefreshListener<Hipp
} }
String[] splitNodes = nodes.split(SEPARATOR); String[] splitNodes = nodes.split(SEPARATOR);
return Arrays.stream(splitNodes) return Arrays.stream(splitNodes)
.distinct() .distinct()
.map(IpAndPort::build) .map(IpAndPort::build)
.filter(Objects::nonNull) .filter(Objects::nonNull)
.anyMatch(i -> i.check(ipSegment, port)); .anyMatch(i -> i.check(ipSegment, port));
} }
/** /**
@ -123,7 +123,7 @@ public abstract class AbstractRefreshListener<M> implements RefreshListener<Hipp
} }
String[] ipPort = node.split(COLON); String[] ipPort = node.split(COLON);
if (ipPort.length != 2) { if (ipPort.length != 2) {
log.error("The IP address format is error"); log.error("The IP address format is error : " + node);
return null; return null;
} }
return new IpAndPort(ipPort[0], ipPort[1]); return new IpAndPort(ipPort[0], ipPort[1]);

Loading…
Cancel
Save