瀏覽代碼

Catch Throwable rather than Exception when sending heartbeat.

Signed-off-by: Carpenter Lee <hooleeucas@163.com>
master
Carpenter Lee 6 年之前
父節點
當前提交
84934b8679
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      sentinel-transport/sentinel-transport-common/src/main/java/com/alibaba/csp/sentinel/transport/init/HeartbeatSenderInitFunc.java

+ 1
- 1
sentinel-transport/sentinel-transport-common/src/main/java/com/alibaba/csp/sentinel/transport/init/HeartbeatSenderInitFunc.java 查看文件

@@ -62,7 +62,7 @@ public class HeartbeatSenderInitFunc implements InitFunc {
public void run() {
try {
sender.sendHeartbeat();
} catch (Exception e) {
} catch (Throwable e) {
e.printStackTrace();
RecordLog.info("[HeartbeatSender] Send heartbeat error", e);
}


Loading…
取消
儲存