提交 375eec0d 编写于 作者: sinat_25235033's avatar sinat_25235033

cancel log debug stack when jwt error

上级 366eaebb
......@@ -52,14 +52,14 @@ public class JwtProcessor extends BaseProcessor {
// JWT令牌错误
if (logger.isDebugEnabled()) {
logger.debug("jwtProcessor authenticated fail, user: {}, jwt: {}",
var.getPrincipal(), jwt, e);
var.getPrincipal(), jwt);
}
throw new IncorrectCredentialsException("this jwt error:" + e.getMessage());
} catch (ExpiredJwtException e) {
// JWT 令牌过期
if (logger.isDebugEnabled()) {
logger.debug("jwtProcessor authenticated expired, user: {}, jwt: {}",
var.getPrincipal(), jwt, e);
var.getPrincipal(), jwt);
}
throw new ExpiredCredentialsException("this jwt has expired");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册