Commit 1beda662 authored by 李健华's avatar 李健华

Merge branch 'feature/sentry-skip-20220707' into 'master'

去掉极光一键登录异常捕获到sentry

See merge request !79
parents cd46ad72 8c3eae5e
......@@ -2,8 +2,8 @@ package cn.quantgroup.xyqb.config.sentry;
import cn.quantgroup.xyqb.exception.VerificationCodeErrorException;
import io.sentry.Sentry;
import org.hibernate.exception.DataException;
import org.springframework.core.Ordered;
import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.web.servlet.HandlerExceptionResolver;
import org.springframework.web.servlet.ModelAndView;
......@@ -26,6 +26,10 @@ public class CustomSentryExceptionResolver implements HandlerExceptionResolver,
if (ex instanceof VerificationCodeErrorException) {
return null;
}
if (ex instanceof BadCredentialsException) {
return null;
}
Sentry.capture(ex);
// null = run other HandlerExceptionResolvers to actually handle the exception
......
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