Skip to content

Commit

Permalink
Improved logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bchabrier committed Nov 18, 2021
1 parent 85e4751 commit 07e841a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/openzwave/sources/openzwave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,10 @@ export class Openzwave extends Source {
}

private sendControllerConfig(config: string, callback: (err: Error) => void): void {
this.debugModeLogger.error("Controller config command:", JSON.parse(config).command);
const command = JSON.parse(config).command;
const node = this.nodes.get(command.nodeId);
const commandName = command.command;
this.debugModeLogger.error(`Controller config command '${commandName}' on node '${node.id}'`);
switch (commandName) {
case "setValue":
node.setValue(command.valueID, command.value).then((res) => {
Expand Down

0 comments on commit 07e841a

Please sign in to comment.