Skip to content

Commit 33ede4c

Browse files
committed
fix(heartbeat): log syncing of offline heartbeats to the connected instance
1 parent a52159e commit 33ede4c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/heartbeat.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,11 @@ export class HeartbeatManager {
326326
}
327327

328328
private async syncOfflineHeartbeats(): Promise<void> {
329+
log(
330+
"Syncing offline heartbeats to the contected ziit instance: " +
331+
(await getBaseUrl())
332+
);
333+
329334
if (!this.isOnline || this.offlineHeartbeats.length === 0) return;
330335
const apiKey = await getApiKey();
331336
const baseUrl = await getBaseUrl();
@@ -731,9 +736,6 @@ export class HeartbeatManager {
731736
this.statusBar.setOnlineStatus(isOnline);
732737
}
733738
log(`Online status changed to: ${isOnline ? "online" : "offline"}`);
734-
}
735-
736-
if(this.isOnline == true) {
737739
this.syncOfflineHeartbeats();
738740
}
739741
}

0 commit comments

Comments
 (0)