Skip to content

Commit

Permalink
[ISSUE #5190]remove the unnecessary catch in the login method (#5456)
Browse files Browse the repository at this point in the history
* remove the unnecessary catch in the login method

* catch the throwable error when login and print the message
  • Loading branch information
brotherlu-xcq authored Apr 23, 2021
1 parent 6c270cb commit 2f82f07
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ public boolean login(List<String> servers) {
return true;
}
}
} catch (Throwable ignore) {
} catch (Throwable throwable) {
SECURITY_LOGGER.warn("[SecurityProxy] login failed, error: ", throwable);
}

return false;
Expand Down

0 comments on commit 2f82f07

Please sign in to comment.