From cdd8fa80556b7ee73b9ad127e4bf367722b3a4c5 Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Sun, 25 Aug 2024 22:50:57 -0400 Subject: [PATCH] better debug --- backend/controllers/systems.js | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/controllers/systems.js b/backend/controllers/systems.js index a3fa228..236a24c 100644 --- a/backend/controllers/systems.js +++ b/backend/controllers/systems.js @@ -147,6 +147,7 @@ async function load_systems(systemClients) { exports.get_systems = async function (req, res) { if ((systemList.length == 0) || (systemListTime < (Date.now() - 60 * 1000 * 2))) { + console.log("Loading Systems - systemTime: " + systemListTime + " compare to: " + (Date.now() - 60 * 1000 * 2)); systemListTime = Date.now(); // set this first to prevent multiple calls to load_systems await load_systems(req.systemClients); }