1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

When the service attribute is empty, modify the log level of ANS to warn.

This commit is contained in:
yunzheng1228 2019-02-28 15:43:27 +08:00
parent c94eec5828
commit 923a2b590d

View File

@ -44,7 +44,7 @@ public class AnsServiceRegistry implements ServiceRegistry<AnsRegistration> {
return;
}
if (StringUtils.isEmpty(registration.getServiceId())) {
log.info("No service to register for client...");
log.warn("No service to register for client...");
return;
}
@ -80,7 +80,7 @@ public class AnsServiceRegistry implements ServiceRegistry<AnsRegistration> {
log.info("De-registering from ANSServer now...");
if (StringUtils.isEmpty(registration.getServiceId())) {
log.info("No dom to de-register for client...");
log.warn("No dom to de-register for client...");
return;
}