Add extra logging for failed to configure. https://github.com/Koenkk/zigbee2mqtt/issues/1957

This commit is contained in:
Koen Kanters
2019-09-22 18:01:10 +02:00
parent e65f9d36d0
commit e441cf1752
+1 -1
View File
@@ -72,7 +72,7 @@ class DeviceConfigure extends BaseExtension {
} catch (error) {
logger.error(
`Failed to configure '${settingsDevice.friendlyName}', ` +
`attempt ${this.attempts[device.ieeeAddr] + 1} (${error})`
`attempt ${this.attempts[device.ieeeAddr] + 1} (${error.stack})`
);
this.attempts[device.ieeeAddr]++;
}