mirror of
https://github.com/lasthead0/yandex2mqtt.git
synced 2025-08-08 09:01:00 +03:00
Add logging and some code improvement
This commit is contained in:
@@ -225,7 +225,7 @@ class Device {
|
|||||||
const value = this.getMappedValue(val, actType, false);
|
const value = this.getMappedValue(val, actType, false);
|
||||||
cp.state = {instance, value: convertToYandexValue(value, actType)};
|
cp.state = {instance, value: convertToYandexValue(value, actType)};
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.error(e);
|
global.logger.log('error', {message: `${e}`});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user