tmp add debug log for state changes
This commit is contained in:
parent
de2e9e00ec
commit
5fadfd2000
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user