Commit 8c3eae5e authored by 李健华's avatar 李健华

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

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