From 3c195377d651d73b510236893fbce875f656c3b8 Mon Sep 17 00:00:00 2001 From: "mai.jh" Date: Sun, 26 Apr 2020 11:22:47 +0800 Subject: [PATCH] Modify log output --- .../com/alibaba/nacos/client/config/impl/ClientWorker.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java b/client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java index f17ddccb3..060653641 100644 --- a/client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java +++ b/client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java @@ -27,6 +27,7 @@ import com.alibaba.nacos.client.config.impl.HttpSimpleClient.HttpResult; import com.alibaba.nacos.client.config.utils.ContentUtils; import com.alibaba.nacos.client.config.utils.MD5; import com.alibaba.nacos.client.monitor.MetricsMonitor; +import com.alibaba.nacos.client.naming.utils.CollectionUtils; import com.alibaba.nacos.client.utils.LogUtils; import com.alibaba.nacos.client.utils.ParamUtil; import com.alibaba.nacos.client.utils.TenantUtil; @@ -519,7 +520,10 @@ public class ClientWorker { // check server config List changedGroupKeys = checkUpdateDataIds(cacheDatas, inInitializingCacheList); - LOGGER.info("get changedGroupKeys:" + changedGroupKeys); + if (!CollectionUtils.isEmpty(changedGroupKeys)) { + LOGGER.info("get changedGroupKeys:" + changedGroupKeys); + } + for (String groupKey : changedGroupKeys) { String[] key = GroupKey.parseKey(groupKey);