From b599fc546389bd1236eb5cd925abe9e11f3bb93f Mon Sep 17 00:00:00 2001 From: linwl <304115325@qq.com> Date: Fri, 16 Apr 2021 15:22:01 +0800 Subject: [PATCH] =?UTF-8?q?IOT=E8=B0=83=E7=94=A8=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/telpo/iotgateway/server/IotCommunication.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/telpo/iotgateway/server/IotCommunication.java b/src/main/java/com/telpo/iotgateway/server/IotCommunication.java index 5dc098f..06362ac 100644 --- a/src/main/java/com/telpo/iotgateway/server/IotCommunication.java +++ b/src/main/java/com/telpo/iotgateway/server/IotCommunication.java @@ -104,16 +104,16 @@ public class IotCommunication { request.putQueryParameter("DeviceName", DeviceName); long startTime = (new DateTime()).getTime(); - //log.debug("开始IOT请求"); + log.debug("开始IOT请求"); CommonResponse response = client.getCommonResponse(request); long endTime = (new DateTime()).getTime(); long useTime = endTime-startTime; allOfManTime = allOfManTime + useTime; - //log.debug("结束IOT请求, 用时:" + useTime); + log.debug("结束IOT请求, 用时:" + useTime); Thread.sleep(10); - if (useTime > 2000) { + if (useTime > 1000) { reqLongCount++; - log.debug(response.getData()); + log.debug("RequestID:" + response.getData()); } reqCount++; if (reqCount == 10000) {