From 5fadfd2000df39712beabe8e39ff424eda1db5ea Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sat, 30 Nov 2024 18:14:07 -0500 Subject: [PATCH] tmp add debug log for state changes --- src/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.js b/src/main.js index 4d4db59..b45c020 100644 --- a/src/main.js +++ b/src/main.js @@ -58,6 +58,7 @@ setInterval(fn.routines.cycleAuger, config.augerTotalCycleTime); /***************************************************************************************/ process.comlink.on('stateChange', (oldState, state) => { fn.log(`ComLink: State change detected.`, 'INFO'); + fn.log(`ComLink: Old State: ${JSON.stringify(oldState.auger)}\nNew State: ${JSON.stringify(state.auger)}`, 'DEBUG'); fn.handlers.stateChange(oldState, state); });