diff --git a/core/api/src/main/java/com/alipay/sofa/rpc/log/LogCodes.java b/core/api/src/main/java/com/alipay/sofa/rpc/log/LogCodes.java index 7ca9d0b96..8e3e11ca9 100644 --- a/core/api/src/main/java/com/alipay/sofa/rpc/log/LogCodes.java +++ b/core/api/src/main/java/com/alipay/sofa/rpc/log/LogCodes.java @@ -156,7 +156,7 @@ public class LogCodes { public static final String INFO_ROUTE_REGISTRY_PUB_START = "00205"; public static final String INFO_ROUTE_REGISTRY_PUB_OVER = "00206"; public static final String LOCALFILEREGISTRY_WRITE_FILEOVER = "00207"; - public static final String INFO_CONFREG_IGNORE = "00208"; + public static final String INFO_REGISTRY_IGNORE = "00208"; public static final String INFO_CONNECT_PUT_TO_ALIVE = "00209"; public static final String INFO_CONNECT_PUT_TO_RETRY = "00210"; public static final String INFO_CONNECT_RETRY_START = "00211"; diff --git a/core/api/src/main/resources/sofa-rpc/logcodes-common_en.properties b/core/api/src/main/resources/sofa-rpc/logcodes-common_en.properties index cf17c17b0..ecd3ec0c6 100644 --- a/core/api/src/main/resources/sofa-rpc/logcodes-common_en.properties +++ b/core/api/src/main/resources/sofa-rpc/logcodes-common_en.properties @@ -14,7 +14,7 @@ 00205=Start publish RPC service[{0}] 00206=Stop publish RPC service[{0}] 00207=Register service address to file cost:[{0}] SEC -00208=rpc_register_confreg_ignore is true, ignore register confreg +00208=rpc_register_registry_ignore is true, ignore register registry 00209=Put url to alive list: {0} with channel {1} 00210=Put url to retry list: {0} with old channel {1} 00211=Retry connect to {0} diff --git a/core/api/src/main/resources/sofa-rpc/logcodes-common_zh_CN.properties b/core/api/src/main/resources/sofa-rpc/logcodes-common_zh_CN.properties index c70a2e1c2..d7b995b18 100644 --- a/core/api/src/main/resources/sofa-rpc/logcodes-common_zh_CN.properties +++ b/core/api/src/main/resources/sofa-rpc/logcodes-common_zh_CN.properties @@ -14,7 +14,7 @@ 00205=RPC 服务[{0}]发布开始 00206=RPC 服务[{0}]发布结束 00207=本地注册完成,文件写入耗费:[{0}] SEC -00208=rpc_register_confreg_ignore等于true, 忽略注册配置中心 +00208=rpc_register_Registry_ignore等于true, 忽略注册配置中心 00209=将地址放入已连列表:{0},对应长连接:{1} 00210=将地址放入重连列表:{0},对应长连接:{1} 00211=尝试重连地址:{0} diff --git a/extension-impl/registry-local/src/main/java/com/alipay/sofa/rpc/registry/local/LocalRegistry.java b/extension-impl/registry-local/src/main/java/com/alipay/sofa/rpc/registry/local/LocalRegistry.java index 49dd3c785..c07014ca1 100644 --- a/extension-impl/registry-local/src/main/java/com/alipay/sofa/rpc/registry/local/LocalRegistry.java +++ b/extension-impl/registry-local/src/main/java/com/alipay/sofa/rpc/registry/local/LocalRegistry.java @@ -172,7 +172,7 @@ public void register(ProviderConfig config) { String appName = config.getAppName(); if (!registryConfig.isRegister()) { if (LOGGER.isInfoEnabled(appName)) { - LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_CONFREG_IGNORE)); + LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_REGISTRY_IGNORE)); } return; } @@ -230,7 +230,7 @@ public void unRegister(ProviderConfig config) { String appName = config.getAppName(); if (!registryConfig.isRegister()) { // 注册中心不注册 if (LOGGER.isInfoEnabled(appName)) { - LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_CONFREG_IGNORE)); + LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_REGISTRY_IGNORE)); } return; } diff --git a/extension-impl/registry-zk/src/main/java/com/alipay/sofa/rpc/registry/zk/ZookeeperRegistry.java b/extension-impl/registry-zk/src/main/java/com/alipay/sofa/rpc/registry/zk/ZookeeperRegistry.java index 24a379f82..5678139fa 100644 --- a/extension-impl/registry-zk/src/main/java/com/alipay/sofa/rpc/registry/zk/ZookeeperRegistry.java +++ b/extension-impl/registry-zk/src/main/java/com/alipay/sofa/rpc/registry/zk/ZookeeperRegistry.java @@ -262,7 +262,7 @@ public void register(ProviderConfig config) { String appName = config.getAppName(); if (!registryConfig.isRegister()) { if (LOGGER.isInfoEnabled(appName)) { - LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_CONFREG_IGNORE)); + LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_REGISTRY_IGNORE)); } return; } @@ -401,7 +401,7 @@ public void unRegister(ProviderConfig config) { if (!registryConfig.isRegister()) { // 注册中心不注册 if (LOGGER.isInfoEnabled(appName)) { - LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_CONFREG_IGNORE)); + LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_REGISTRY_IGNORE)); } return; } @@ -458,7 +458,7 @@ public List subscribe(final ConsumerConfig config) { if (!registryConfig.isSubscribe()) { // 注册中心不订阅 if (LOGGER.isInfoEnabled(appName)) { - LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_CONFREG_IGNORE)); + LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_REGISTRY_IGNORE)); } return null; }