Commit 5fb75837 by zhiwj

指标修改

parent 0b66f4ae
......@@ -14,6 +14,7 @@ import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException;
import java.io.ByteArrayOutputStream;
import java.io.PrintWriter;
import java.util.List;
import java.util.Set;
......@@ -33,9 +34,9 @@ public class GlobalExceptionHandler {
RestResponse failureResponse = getRestResponse(ErrorCode.SYSTEM_ERROR.getCode(), ErrorCode.SYSTEM_ERROR.getMsg());
StringBuilder sb = new StringBuilder();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
// try (PrintWriter printWriter = new PrintWriter(baos)) {
// ex.printStackTrace(printWriter);
// }
try (PrintWriter printWriter = new PrintWriter(baos)) {
logger.warn("err", ex);
}
try {
sb.append(baos.toString());
} 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