diff --git a/index.js b/index.js index 3c2b2cb..9f39116 100644 --- a/index.js +++ b/index.js @@ -80,9 +80,7 @@ app.listen(port, () => { if (err) { return console.error('Failed to run heartbeat check', err); } - if (!rows || rows.length === 0) { - return console.log("No hb missed"); // No missed heartbeats - } + console.log(rows) rows.forEach(row => { console.log(`Server ${row.id} missed heartbeat check. Marking as inactive.`); // Set endTime to last known heartbeatCheck time, shutdownReason "missedHeartbeat"