Improve logging.

This commit is contained in:
Koen Kanters
2019-10-01 20:50:05 +02:00
parent 518232e15e
commit b492b0ce5f
+2 -2
View File
@@ -178,8 +178,8 @@ class Controller {
if (type === 'message') {
logger.debug(
`Received Zigbee message from '${name}' of type '${data.type}' ` +
`with data '${JSON.stringify(data.data)}' from endpoint ${data.endpoint.ID}` +
`Received Zigbee message from '${name}', type '${data.type}', cluster '${data.cluster}' ` +
`, data '${JSON.stringify(data.data)}' from endpoint ${data.endpoint.ID}` +
(data.hasOwnProperty('groupID') ? ` with groupID ${data.groupID}` : ``)
);
} else if (type === 'deviceJoined') {