Skip to content

Commit d3b171d

Browse files
committed
Log heartbeat failures
1 parent f3089a4 commit d3b171d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/core/src/meshDevice.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,12 @@ export class MeshDevice {
808808
clearInterval(this._heartbeatIntervalId);
809809
}
810810
this._heartbeatIntervalId = setInterval(() => {
811-
this.heartbeat().catch(() => {});
811+
this.heartbeat().catch((err) => {
812+
this.log.error(
813+
Emitter[Emitter.Ping],
814+
`⚠️ Unable to send heartbeat: ${err.message}`
815+
);
816+
});
812817
}, interval);
813818
}
814819

0 commit comments

Comments
 (0)