未验证 提交 b007629c 编写于 作者: W whhe 提交者: GitHub

pass exception into logger to record cause message (#3)

上级 a9fddf43
...@@ -221,7 +221,7 @@ public class ClientStream { ...@@ -221,7 +221,7 @@ public class ClientStream {
return ReconnectState.RETRY; return ReconnectState.RETRY;
} catch (Exception e) { } 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 // not success, retry next time
reconnect.set(true); reconnect.set(true);
return ReconnectState.RETRY; return ReconnectState.RETRY;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册