This commit is contained in:
JianweiWang 2024-05-14 13:37:08 +08:00 committed by GitHub
parent b047a90fba
commit 47dd078545
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -529,8 +529,9 @@ public abstract class RpcClient implements Closeable {
lastException = null;
} catch (Exception e) {
lastException = e;
} catch (Throwable throwable) {
LoggerUtils.printIfErrorEnabled(LOGGER, "Fail to connect server, error = {}", throwable.getMessage());
lastException = new Exception(throwable);
} finally {
recommendServer.set(null);
}