From 2f82f070fe557e7cd362ca8be0dc4f80fe4ce338 Mon Sep 17 00:00:00 2001 From: brothelul <1285823170@qq.com> Date: Fri, 23 Apr 2021 19:12:52 +0800 Subject: [PATCH] [ISSUE #5190]remove the unnecessary catch in the login method (#5456) * remove the unnecessary catch in the login method * catch the throwable error when login and print the message --- .../java/com/alibaba/nacos/client/security/SecurityProxy.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/main/java/com/alibaba/nacos/client/security/SecurityProxy.java b/client/src/main/java/com/alibaba/nacos/client/security/SecurityProxy.java index 86ca266f2..6ea5994e2 100644 --- a/client/src/main/java/com/alibaba/nacos/client/security/SecurityProxy.java +++ b/client/src/main/java/com/alibaba/nacos/client/security/SecurityProxy.java @@ -114,7 +114,8 @@ public class SecurityProxy { return true; } } - } catch (Throwable ignore) { + } catch (Throwable throwable) { + SECURITY_LOGGER.warn("[SecurityProxy] login failed, error: ", throwable); } return false;