From b007629c5a7b03ab009c41f707e586523e7ceb66 Mon Sep 17 00:00:00 2001 From: whhe Date: Tue, 19 Oct 2021 18:09:53 +0800 Subject: [PATCH] pass exception into logger to record cause message (#3) --- .../com/oceanbase/clogproxy/client/connection/ClientStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logproxy-client/src/main/java/com/oceanbase/clogproxy/client/connection/ClientStream.java b/logproxy-client/src/main/java/com/oceanbase/clogproxy/client/connection/ClientStream.java index f8baf85..27a8db9 100644 --- a/logproxy-client/src/main/java/com/oceanbase/clogproxy/client/connection/ClientStream.java +++ b/logproxy-client/src/main/java/com/oceanbase/clogproxy/client/connection/ClientStream.java @@ -221,7 +221,7 @@ public class ClientStream { return ReconnectState.RETRY; } catch (Exception e) { - logger.error("failed to reconnect, retry count: {}, max: {}, message: {}", ++retryTimes, ClientConf.MAX_RECONNECT_TIMES, e.getMessage()); + logger.error("failed to reconnect, retry count: {}, max: {}, message: {}", ++retryTimes, ClientConf.MAX_RECONNECT_TIMES, e); // not success, retry next time reconnect.set(true); return ReconnectState.RETRY; -- GitLab