소스 검색

优化/error路径下获取请求参数异常问题

woody 4 달 전
부모
커밋
33e807f010
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      framework-base/src/main/java/com/chelvc/framework/base/interceptor/GlobalExceptionInterceptor.java

+ 1 - 3
framework-base/src/main/java/com/chelvc/framework/base/interceptor/GlobalExceptionInterceptor.java

@@ -21,7 +21,6 @@ import com.chelvc.framework.base.context.ApplicationContextHolder;
 import com.chelvc.framework.base.context.LoggingContextHolder;
 import com.chelvc.framework.base.context.Result;
 import com.chelvc.framework.base.context.SessionContextHolder;
-import com.chelvc.framework.base.util.HttpUtils;
 import com.chelvc.framework.common.exception.FrameworkException;
 import com.chelvc.framework.common.exception.ParameterInvalidException;
 import com.chelvc.framework.common.util.ErrorUtils;
@@ -242,8 +241,7 @@ public class GlobalExceptionInterceptor extends AbstractErrorController implemen
         String uri = (String) attributes.get("path");
         String method = request.getMethod();
         String message = (String) attributes.get("error");
-        String parameter = HttpUtils.isMultipart(request) ? null : HttpUtils.serialize(request);
-        log.warn(LoggingContextHolder.message(uri, method, parameter, message));
+        log.warn(LoggingContextHolder.message(uri, method, null, message));
 
         Result<?> result;
         if (status.is5xxServerError()) {