(improvement)(auth)Avoid printing error logs when key decryption and token parsing fail (#1681)

* (improvement)(auth) Avoid throwing exceptions after login token authentication fails #1679

(improvement)(common) Do not print error log when key decryption fails #1679


---------

Co-authored-by: lxwcodemonkey
This commit is contained in:
LXW
2024-09-18 16:20:12 +08:00
committed by GitHub
parent 70fff17fbe
commit 0c0fbb829e
5 changed files with 24 additions and 27 deletions

View File

@@ -27,7 +27,6 @@ public class RestExceptionHandler {
@ExceptionHandler(AccessException.class)
@ResponseStatus(HttpStatus.OK)
public ResultData<String> accessException(Exception e) {
log.error("default global exception", e);
return ResultData.fail(ReturnCode.ACCESS_ERROR.getCode(), e.getMessage());
}