supeng 1 day ago
parent
commit
9f0c112019

+ 4 - 4
content-understanding-core/src/main/java/com/tzld/piaoquan/content/understanding/handle/GlobalExceptionHandle.java

@@ -53,7 +53,7 @@ public class GlobalExceptionHandle {
             response.setMsg(e.getMsg());
             LOGGER.warn("uri:" + uri + "\n" + "CustomException log.", exception);
             Map<String, Object> logMap = new HashMap<>();
-            logMap.put("uri", "uri");
+            logMap.put("uri", uri);
             logMap.put("code", e.getCode());
             logMap.put("msg", e.getMsg());
             loghubService.asyncSubmitLog(aliyunLogProject, aliyunLogLogstoreError, "" , logMap);
@@ -72,7 +72,7 @@ public class GlobalExceptionHandle {
             response.setMsg(errorMsg.toString());
             LOGGER.warn("uri:" + uri + "\n" + "MethodArgumentNotValidException log.", exception);
             Map<String, Object> logMap = new HashMap<>();
-            logMap.put("uri", "uri");
+            logMap.put("uri", uri);
             logMap.put("code", ExceptionEnum.PARAMS_INVALID.getCode());
             logMap.put("msg", errorMsg.toString());
             loghubService.asyncSubmitLog(aliyunLogProject, aliyunLogLogstoreError, "" , logMap);
@@ -91,7 +91,7 @@ public class GlobalExceptionHandle {
             response.setMsg(errorMsg.toString());
             LOGGER.warn("uri:" + uri + "\n" + "BindException log.", exception);
             Map<String, Object> logMap = new HashMap<>();
-            logMap.put("uri", "uri");
+            logMap.put("uri", uri);
             logMap.put("code", ExceptionEnum.PARAMS_INVALID.getCode());
             logMap.put("msg", errorMsg.toString());
             loghubService.asyncSubmitLog(aliyunLogProject, aliyunLogLogstoreError, "" , logMap);
@@ -100,7 +100,7 @@ public class GlobalExceptionHandle {
             response.setMsg(ExceptionEnum.SYSTEM_ERROR.getMsg());
             LOGGER.error("uri:" + uri + "\n" + "unknow exception log.", exception);
             Map<String, Object> logMap = new HashMap<>();
-            logMap.put("uri", "uri");
+            logMap.put("uri", uri);
             logMap.put("code", ExceptionEnum.SYSTEM_ERROR.getCode());
             logMap.put("msg", ExceptionEnum.SYSTEM_ERROR.getMsg());
             loghubService.asyncSubmitLog(aliyunLogProject, aliyunLogLogstoreError, "" , logMap);