Prechádzať zdrojové kódy

使用前端 trcakid 2

wuweihao 3 rokov pred
rodič
commit
189c6974a8

+ 2 - 5
gis_common/src/main/java/com/gis/common/base/aop/WebLogAspect.java

@@ -50,11 +50,7 @@ public class WebLogAspect {
 
         // 前端请求时间戳
         String trace_id = request.getHeader("TRACE_ID");
-        if (StrUtil.isBlank(trace_id)){
-            startTime = System.currentTimeMillis();
-        } else {
-            startTime = Long.valueOf(trace_id);
-        }
+        startTime = System.currentTimeMillis();
 
 
 
@@ -64,6 +60,7 @@ public class WebLogAspect {
         // 记录下请求内容
         String remoteAddr = request.getRemoteAddr();
         log.warn("start : {}, {}, uuid: {}" , request.getMethod(), request.getRequestURI(), startTime);
+        log.info("前端强求时间: {}, 后端:{}", trace_id, startTime);
         log.info("request IP:{}" , remoteAddr);
         log.info("request Args : {}" , Arrays.toString(joinPoint.getArgs()));