Commit 5fb75837 by zhiwj

指标修改

parent 0b66f4ae
...@@ -14,6 +14,7 @@ import javax.servlet.http.HttpServletResponse; ...@@ -14,6 +14,7 @@ import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation; import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException; import javax.validation.ConstraintViolationException;
import java.io.ByteArrayOutputStream; import java.io.ByteArrayOutputStream;
import java.io.PrintWriter;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
...@@ -33,9 +34,9 @@ public class GlobalExceptionHandler { ...@@ -33,9 +34,9 @@ public class GlobalExceptionHandler {
RestResponse failureResponse = getRestResponse(ErrorCode.SYSTEM_ERROR.getCode(), ErrorCode.SYSTEM_ERROR.getMsg()); RestResponse failureResponse = getRestResponse(ErrorCode.SYSTEM_ERROR.getCode(), ErrorCode.SYSTEM_ERROR.getMsg());
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
ByteArrayOutputStream baos = new ByteArrayOutputStream(); ByteArrayOutputStream baos = new ByteArrayOutputStream();
// try (PrintWriter printWriter = new PrintWriter(baos)) { try (PrintWriter printWriter = new PrintWriter(baos)) {
// ex.printStackTrace(printWriter); logger.warn("err", ex);
// } }
try { try {
sb.append(baos.toString()); sb.append(baos.toString());
} catch (Exception ignored) { } catch (Exception ignored) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment