Explorar el Código

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

woody hace 4 meses
padre
commit
33e807f010

+ 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()) {