fix: correct logging config path and child registration ID
Fixed eneableLog typo accessing wrong config path — now uses machineConfig.general.logging.enabled/logLevel. Changed _registerChild to use this.node.id consistent with all other nodes. Removed debug console.log. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -58,14 +58,12 @@ class nodeClass {
|
|||||||
_setupSpecificClass(uiConfig) {
|
_setupSpecificClass(uiConfig) {
|
||||||
const machineConfig = this.config;
|
const machineConfig = this.config;
|
||||||
|
|
||||||
console.log(`----------------> Loaded movementMode in nodeClass: ${uiConfig.movementMode}`);
|
|
||||||
|
|
||||||
// need extra state for this
|
// need extra state for this
|
||||||
const stateConfig = {
|
const stateConfig = {
|
||||||
general: {
|
general: {
|
||||||
logging: {
|
logging: {
|
||||||
enabled: machineConfig.eneableLog,
|
enabled: machineConfig.general.logging.enabled,
|
||||||
logLevel: machineConfig.logLevel
|
logLevel: machineConfig.general.logging.logLevel
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
movement: {
|
movement: {
|
||||||
@@ -184,7 +182,7 @@ class nodeClass {
|
|||||||
this.node.send([
|
this.node.send([
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
{ topic: 'registerChild', payload: this.config.general.id, positionVsParent: this.config?.functionality?.positionVsParent || 'atEquipment' },
|
{ topic: 'registerChild', payload: this.node.id, positionVsParent: this.config?.functionality?.positionVsParent || 'atEquipment' },
|
||||||
]);
|
]);
|
||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user