mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
enable NacosConnectionFailureAnalyzer
This commit is contained in:
parent
f6bc404e0b
commit
837f69a1c8
@ -22,6 +22,7 @@ import java.util.Properties;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
|
||||
import com.alibaba.cloud.nacos.diagnostics.analyzer.NacosConnectionFailureException;
|
||||
import com.alibaba.nacos.api.NacosFactory;
|
||||
import com.alibaba.nacos.api.config.ConfigService;
|
||||
import com.alibaba.nacos.api.exception.NacosException;
|
||||
@ -367,8 +368,8 @@ public class NacosConfigProperties {
|
||||
.createConfigService(getConfigServiceProperties());
|
||||
}
|
||||
catch (NacosException e) {
|
||||
log.error("create naming service error!properties={},e=,", this, e);
|
||||
return null;
|
||||
throw new NacosConnectionFailureException(this.getServerAddr(),
|
||||
e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
return configService;
|
||||
|
Loading…
x
Reference in New Issue
Block a user