Browse Source

Catch Throwable rather than Exception when sending heartbeat.

Signed-off-by: Carpenter Lee <hooleeucas@163.com>
master
Carpenter Lee 6 years ago
parent
commit
84934b8679
1 changed files with 1 additions and 1 deletions
  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 View File

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


Loading…
Cancel
Save