mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-09-17 02:04:21 +00:00
Log stack in debug when MQTT request fails. https://github.com/Koenkk/zigbee2mqtt/issues/9367
This commit is contained in:
@@ -119,6 +119,7 @@ export default class Bridge extends Extension {
|
||||
await this.mqtt.publish(`bridge/response/${match[1]}`, stringify(response));
|
||||
} catch (error) {
|
||||
logger.error(`Request '${data.topic}' failed with error: '${error.message}'`);
|
||||
logger.debug(error.stack);
|
||||
const response = utils.getResponse(message, {}, error.message);
|
||||
await this.mqtt.publish(`bridge/response/${match[1]}`, stringify(response));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user