Pārlūkot izejas kodu

Catch Throwable rather than Exception when sending heartbeat.

Signed-off-by: Carpenter Lee <hooleeucas@163.com>
master
Carpenter Lee pirms 6 gadiem
vecāks
revīzija
84934b8679
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 Parādīt failu

@@ -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);
}


Notiek ielāde…
Atcelt
Saglabāt