update 打印日志

This commit is contained in:
Guoqs
2024-07-12 14:54:43 +08:00
parent 4c02ae60ce
commit 33b33ad29f
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ public class AuthenticationEntryPointImpl implements AuthenticationEntryPoint, S
throws IOException {
int code = HttpStatus.UNAUTHORIZED;
String msg = StringUtils.format("请求访问:{},认证失败,无法访问系统资源", request.getRequestURI());
logger.error("认证失败无法访问系统资源error", e);
logger.error("认证失败无法访问系统资源error:{}", e.getMessage());
ServletUtils.renderString(response, JSON.toJSONString(AjaxResult.error(code, msg)));
}
}