Commit d2319b31 authored by shenjiaqing's avatar shenjiaqing

提交代码

parent 81be797a
...@@ -144,7 +144,6 @@ public class CacheConfig { ...@@ -144,7 +144,6 @@ public class CacheConfig {
} }
logger.info("container of all registered AppInfo size: {}", instances.size()); logger.info("container of all registered AppInfo size: {}", instances.size());
List<InstanceInfo> list = instances.stream().sorted(Comparator.comparing(InstanceInfo::getLastUpdatedTimestamp).reversed()).collect(Collectors.toList()); List<InstanceInfo> list = instances.stream().sorted(Comparator.comparing(InstanceInfo::getLastUpdatedTimestamp).reversed()).collect(Collectors.toList());
logger.info("container of all registered AppInfo : {}", list.get(0));
if (CollectionUtils.isEmpty(list)) { if (CollectionUtils.isEmpty(list)) {
logger.warn("Cache preheating failed,because 服务启动获取【" + appName + "】列表信息为空"); logger.warn("Cache preheating failed,because 服务启动获取【" + appName + "】列表信息为空");
return; return;
...@@ -222,7 +221,6 @@ public class CacheConfig { ...@@ -222,7 +221,6 @@ public class CacheConfig {
} }
} }
}); });
logger.info(JSON.toJSONString(map.keySet(), SerializerFeature.PrettyFormat,SerializerFeature.WriteMapNullValue,SerializerFeature.WriteDateUseDateFormat));
} catch (Exception e) { } catch (Exception e) {
logger.warn("服务启动获取【" + appName +"】列表信息失败", e); logger.warn("服务启动获取【" + appName +"】列表信息失败", e);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment