diff --git a/config/src/main/java/com/alibaba/nacos/config/server/controller/ConfigServletInner.java b/config/src/main/java/com/alibaba/nacos/config/server/controller/ConfigServletInner.java index b4284c957d7..b498c465869 100755 --- a/config/src/main/java/com/alibaba/nacos/config/server/controller/ConfigServletInner.java +++ b/config/src/main/java/com/alibaba/nacos/config/server/controller/ConfigServletInner.java @@ -291,7 +291,7 @@ private void logPullEvent(String dataId, String group, String tenant, String req ConfigTraceService.logPullEvent(dataId, group, tenant, requestIpApp, -1, pullEvent, ConfigTraceService.PULL_TYPE_NOTFOUND, -1, clientIp, notify, "http"); } else { - long delayed = notify ? -1 : System.currentTimeMillis() - chainResponse.getLastModified(); + long delayed = System.currentTimeMillis() - chainResponse.getLastModified(); ConfigTraceService.logPullEvent(dataId, group, tenant, requestIpApp, chainResponse.getLastModified(), pullEvent, ConfigTraceService.PULL_TYPE_OK, delayed, clientIp, notify, "http"); } diff --git a/config/src/main/java/com/alibaba/nacos/config/server/remote/ConfigQueryRequestHandler.java b/config/src/main/java/com/alibaba/nacos/config/server/remote/ConfigQueryRequestHandler.java index f803df9ed47..74d56dcb10e 100644 --- a/config/src/main/java/com/alibaba/nacos/config/server/remote/ConfigQueryRequestHandler.java +++ b/config/src/main/java/com/alibaba/nacos/config/server/remote/ConfigQueryRequestHandler.java @@ -127,7 +127,7 @@ public ConfigQueryResponse handle(ConfigQueryRequest request, RequestMeta meta) String pullEvent = resolvePullEventType(chainResponse, request.getTag()); LogUtil.PULL_CHECK_LOG.warn("{}|{}|{}|{}", groupKey, clientIp, response.getMd5(), TimeUtils.getCurrentTimeStr()); - final long delayed = notify ? -1 : System.currentTimeMillis() - response.getLastModified(); + final long delayed = System.currentTimeMillis() - response.getLastModified(); ConfigTraceService.logPullEvent(dataId, group, tenant, requestIpApp, response.getLastModified(), pullEvent, pullType, delayed, clientIp, notify, "grpc");