update 优化 由于sse重试机制导致经常输出认证失败日志过多 将sse失败改为debug
This commit is contained in:
parent
87294b41af
commit
fef2d5207b
@ -63,7 +63,7 @@ public class GlobalExceptionHandler {
|
|||||||
@ExceptionHandler(SseException.class)
|
@ExceptionHandler(SseException.class)
|
||||||
public String handleNotLoginException(SseException e, HttpServletRequest request) {
|
public String handleNotLoginException(SseException e, HttpServletRequest request) {
|
||||||
String requestURI = request.getRequestURI();
|
String requestURI = request.getRequestURI();
|
||||||
log.error("请求地址'{}',认证失败'{}',无法访问系统资源", requestURI, e.getMessage());
|
log.debug("请求地址'{}',认证失败'{}',无法访问系统资源", requestURI, e.getMessage());
|
||||||
return JsonUtils.toJsonString(R.fail(HttpStatus.HTTP_UNAUTHORIZED, "认证失败,无法访问系统资源"));
|
return JsonUtils.toJsonString(R.fail(HttpStatus.HTTP_UNAUTHORIZED, "认证失败,无法访问系统资源"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user