Skip to content

Commit 23aa2b2

Browse files
author
Michael Tröger
committed
Nicht funktionale oder Debug LogMessages für Release entfernt
1 parent 1cc9b69 commit 23aa2b2

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

library.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"compatibility": {
77
"version": "7.0"
88
},
9-
"version": "5.22",
10-
"build": 522,
11-
"date": 1748237295
9+
"version": "5.25",
10+
"build": 525,
11+
"date": 1750609390
1212
}

libs/ModulBase.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -503,13 +503,11 @@ public function MessageSink($Time, $SenderID, $Message, $Data)
503503
$this->BUFFER_MQTT_SUSPENDED = false;
504504
}
505505
if (($this->HasActiveParent()) && (IPS_GetKernelRunlevel() == KR_READY)) {
506-
$this->LogMessage('FM_CONNECT', KL_NOTIFY);
507506
$this->checkExposeAttribute();
508507
}
509508
break;
510509
case IM_CHANGESTATUS:
511510
if ($Data[0] == IS_ACTIVE) {
512-
$this->LogMessage('IM_CHANGESTATUS', KL_NOTIFY);
513511
$this->BUFFER_MQTT_SUSPENDED = false;
514512
// Nur ein UpdateDeviceInfo wenn Parent aktiv und System bereit
515513
if (($this->HasActiveParent()) && (IPS_GetKernelRunlevel() == KR_READY)) {
@@ -3366,13 +3364,9 @@ private function registerPresetProfile(array $presets, string $label, string $va
33663364

33673365
// Neues Profil anlegen
33683366
if ($variableType === 'float') {
3369-
if (!$this->RegisterProfileFloatEx($profileName, '', '', '', $associations)) {
3370-
$this->LogMessage(sprintf('%s: Could not create float profile %s', __FUNCTION__, $profileName), KL_DEBUG);
3371-
}
3367+
$this->RegisterProfileFloatEx($profileName, '', '', '', $associations);
33723368
} else {
3373-
if (!$this->RegisterProfileIntegerEx($profileName, '', '', '', $associations)) {
3374-
$this->LogMessage(sprintf('%s: Could not create integer profile %s', __FUNCTION__, $profileName), KL_DEBUG);
3375-
}
3369+
$this->RegisterProfileIntegerEx($profileName, '', '', '', $associations);
33763370
}
33773371

33783372
return $profileName;

0 commit comments

Comments
 (0)