fix : change @Log4j2 to @Slf4j

pull/655/head
pizihao 3 years ago
parent 4c7631999d
commit e7e540a44f

@ -22,7 +22,7 @@ import cn.hippo4j.common.toolkit.Assert;
import cn.hippo4j.common.toolkit.StringUtil;
import cn.hippo4j.core.toolkit.inet.InetUtils;
import lombok.Data;
import lombok.extern.log4j.Log4j2;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.web.context.WebServerInitializedEvent;
import org.springframework.context.event.EventListener;
@ -32,7 +32,7 @@ import java.util.Objects;
/**
* Refresh listener abstract base class.
*/
@Log4j2
@Slf4j
public abstract class AbstractRefreshListener<M> implements RefreshListener<Hippo4jConfigDynamicRefreshEvent, M> {
protected static final String ALL = "*";
@ -123,7 +123,7 @@ public abstract class AbstractRefreshListener<M> implements RefreshListener<Hipp
}
String[] ipPort = node.split(COLON);
if (ipPort.length != 2) {
log.error("The IP address format is error:{}", node);
log.error("The IP address format is error");
return null;
}
return new IpAndPort(ipPort[0], ipPort[1]);

Loading…
Cancel
Save