Commented console logs in DisplayManager

This commit is contained in:
Pedro Silva 2023-10-16 09:59:17 +01:00
parent 2bbdb28388
commit 8750cc01cc
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
2 changed files with 4 additions and 4 deletions

View file

@ -14,11 +14,11 @@ class DisplayManager {
addRule(ruleConfig) {
const updateStatus = () => {
this.ruleStatus[ruleConfig.key] = this.rules[ruleConfig.key].status;
console.log('ruleStatus', this.ruleStatus);
//console.log('ruleStatus', this.ruleStatus);
}
this.rules[ruleConfig.key] = new Rule(ruleConfig, updateStatus.bind(this));
console.log('Rule', this.rules[ruleConfig.key]);
//console.log('Rule', this.rules[ruleConfig.key]);
}
register() {

View file

@ -15,14 +15,14 @@ class Rule {
const condition = ConditionFactory.make(conditionConfig, updateStatus);
this.conditions[condition.key] = condition;
console.log('Condition', condition);
//console.log('Condition', condition);
}
for (const actionConfig of this.config.actions) {
const action = ActionFactory.make(actionConfig);
this.actions[action.key] = action;
console.log('Action', action);
//console.log('Action', action);
}
}