From 0872ca751aeab313e96d95e1ea4f6b432ecd4d0c Mon Sep 17 00:00:00 2001 From: CedarBetty Date: Wed, 22 Jan 2025 15:44:02 +0800 Subject: [PATCH] add error log because when invalid password or other reasons core has no error log --- src/security/SecurityManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/security/SecurityManager.cpp b/src/security/SecurityManager.cpp index a6210f6..dc0aa7b 100644 --- a/src/security/SecurityManager.cpp +++ b/src/security/SecurityManager.cpp @@ -70,6 +70,7 @@ void SecurityManager::login() NACOS_THROW (NacosException) { * In case 1 and case 2, the program will crash, because these situations are considered as a config error of the program, so let it crash * In case 3, the log is printed by tokenRefreshThreadFunc to remind the dev-ops to correct the config */ + log_error("error INVALID_LOGIN_CREDENTIAL exit!"); throw e; } log_error("Unknown error while login to server, e:%d = %s\n", e.errorcode(), e.what());