chenw 7 лет назад
Родитель
Сommit
dae7cbcd98

+ 5 - 0
bi-server/src/main/java/com/usoftchina/bi/server/service/dashboard/DashboardsService.java

@@ -25,6 +25,8 @@ import com.usoftchina.bi.server.model.vo.dataVo.DataSourceCopyInfo;
 import com.usoftchina.bi.server.service.chart.ChartsUtilService;
 import com.usoftchina.bi.server.service.chart.ChartsUtilService;
 import com.usoftchina.bi.core.utils.GetTokenDataUtil;
 import com.usoftchina.bi.core.utils.GetTokenDataUtil;
 import com.usoftchina.bi.server.service.dataSource.DataConnectorService;
 import com.usoftchina.bi.server.service.dataSource.DataConnectorService;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.springframework.beans.BeanUtils;
 import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
@@ -49,6 +51,8 @@ public class DashboardsService {
     @Autowired
     @Autowired
     private ChartsConfigMapper chartsConfigMapper;
     private ChartsConfigMapper chartsConfigMapper;
 
 
+    private static final Logger LOGGER = LoggerFactory.getLogger(DashboardsService.class);
+
     /*
     /*
     保存看板
     保存看板
      */
      */
@@ -199,6 +203,7 @@ public class DashboardsService {
         String[] params = message.split("&");
         String[] params = message.split("&");
         if (params.length == 2) {
         if (params.length == 2) {
             if (System.currentTimeMillis() - Long.valueOf(params[1]) > 30000) {
             if (System.currentTimeMillis() - Long.valueOf(params[1]) > 30000) {
+                LOGGER.error("now={}, params[1]={}, diff={}", System.currentTimeMillis(), params[1], System.currentTimeMillis()-Long.valueOf(params[1]));
                 throw new MyException("请求超时");
                 throw new MyException("请求超时");
             }
             }
             return params[0];
             return params[0];