add more logs

This commit is contained in:
jane 2021-06-04 22:23:36 -04:00
parent 724e334c26
commit a670cdc253

View file

@ -98,6 +98,7 @@ function tick_pattern() {
log.debug("TICKING PATTERN") log.debug("TICKING PATTERN")
let parsed = pattern.parsed; let parsed = pattern.parsed;
log.info(`${JSON.stringify(pattern})} ${JSON.stringify(parsed)}`);
if (parsed && parsed.length > 0) { if (parsed && parsed.length > 0) {
for (let i = 0; i < cfg.leds; i++) { for (let i = 0; i < cfg.leds; i++) {
@ -116,7 +117,7 @@ function tick_pattern() {
} }
else { else {
let result = functions[name].func(i, command.arg1, command.arg2); let result = functions[name].func(i, command.arg1, command.arg2);
log.info("no convert " + result); log.info("no convert " + result);
targets[command.arg1] = result; targets[command.arg1] = result;
} }
} }