mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-24 10:27:28 +08:00
(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:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user