Tob*_*ias 6 logging spring exception spring-security spring-boot
我喜欢让 Spring Security 记录发生的事情
logging.level.org.springframework.security=debug
Run Code Online (Sandbox Code Playgroud)
已启用。
但是,当用户使用错误的凭据或未激活时,每次都会记录大约五十行(无用)堆栈跟踪的异常。
我只想得到例外
org.springframework.security.authentication.DisabledException: User is disabled
Run Code Online (Sandbox Code Playgroud)
没有堆栈跟踪。如果日志记录级别设置为 info,则如果根本没有日志记录尝试,则不会有任何日志。
那可能吗?- 根本不禁用异常
| 归档时间: |
|
| 查看次数: |
408 次 |
| 最近记录: |