Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
asgothian committed Oct 20, 2024
1 parent bcd2c8d commit a8ec546
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,10 +470,11 @@ class Zigbee extends utils.Adapter {
if (this.stController.checkDebugDevice(devId)) {
const shortMessage = {};
for(var propertyName in message) {
if (propertyName == 'object' || propertyName == 'meta') continue;
shortMessage[propertyName] = message[propertyName];
}

shortMessage.device = device.ieeeAddr;
shortMessage.meta = undefined;
shortMessage.endpoint = (message.endpoint.ID ? message.endpoint.ID: -1);
this.log.warn(`ELEVATED: Zigbee Event of Type ${type} from device ${safeJsonStringify(device.ieeeAddr)}, incoming event: ${safeJsonStringify(shortMessage)}`);
}
// this assigment give possibility to use iobroker logger in code of the converters, via meta.logger
Expand Down

0 comments on commit a8ec546

Please sign in to comment.