Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added _failed logging to binding operations too
Browse files Browse the repository at this point in the history
carldebilly committed Dec 30, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 37c7003 commit 7b9d1cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/extension/deviceBind.js
Original file line number Diff line number Diff line change
@@ -63,6 +63,10 @@ class DeviceBind extends BaseExtension {
`Failed to ${type} cluster '${cluster}' from '${sourceName}' to ` +
`'${targetName}' (${error})`,
);
this.mqtt.log(
`device_${type}_failed`,
{from: sourceName, to: targetName, cluster},
);
}
}
}

0 comments on commit 7b9d1cb

Please sign in to comment.