repair speel error and add debug log
This commit is contained in:
parent
ce66b46e8a
commit
46bcece7aa
@ -56,6 +56,6 @@ public interface Constants {
|
||||
String IP_ADDRESS = "nacos.inetutils.ip-address";
|
||||
String PREFER_HOSTNAME_OVER_IP = "nacos.inetutils.prefer-hostname-over-ip";
|
||||
String SYSTEM_PREFER_HOSTNAME_OVER_IP = "nacos.preferHostnameOverIp";
|
||||
String WEN_CONTEXT_PATH = "server.servlet.context-path";
|
||||
String WEB_CONTEXT_PATH = "server.servlet.context-path";
|
||||
String COMMA_DIVISION = ",";
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ public class RunningConfig implements ApplicationListener<WebServerInitializedEv
|
||||
public static String getContextPath() {
|
||||
|
||||
if (!isServerInitialized) {
|
||||
String contextPath = PropertyUtil.getProperty(Constants.WEN_CONTEXT_PATH);
|
||||
String contextPath = PropertyUtil.getProperty(Constants.WEB_CONTEXT_PATH);
|
||||
if (Constants.ROOT_WEB_CONTEXT_PATH.equals(contextPath)) {
|
||||
return StringUtils.EMPTY;
|
||||
} else {
|
||||
|
@ -96,6 +96,10 @@ public class DataSyncer {
|
||||
}
|
||||
|
||||
List<String> keys = task.getKeys();
|
||||
|
||||
if (Loggers.SRV_LOG.isDebugEnabled()) {
|
||||
Loggers.SRV_LOG.debug("try to sync data for this keys {}.", keys);
|
||||
}
|
||||
// 2. get the datums by keys and check the datum is empty or not
|
||||
Map<String, Datum> datumMap = dataStore.batchGet(keys);
|
||||
if (datumMap == null || datumMap.isEmpty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user