mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
fhem.pl: userReading undef warning only for global verbose 5 (Forum #102868)
git-svn-id: https://svn.fhem.de/fhem/trunk@19964 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b3fdd92c03
commit
3589413b7f
@ -4683,8 +4683,10 @@ readingsEndUpdate($$)
|
|||||||
Log 1, $value;
|
Log 1, $value;
|
||||||
$result= $value;
|
$result= $value;
|
||||||
} elsif(!defined($value)) {
|
} elsif(!defined($value)) {
|
||||||
$cmdFromAnalyze = $perlCode; # For the __WARN__ sub
|
if(AttrVal("global", "verbose", 3) >= 5) { #102868
|
||||||
warn("$name userReadings $reading evaluated to undef");
|
$cmdFromAnalyze = $perlCode; # For the __WARN__ sub
|
||||||
|
warn("$name userReadings $reading evaluated to undef");
|
||||||
|
}
|
||||||
next;
|
next;
|
||||||
} elsif($modifier eq "none") {
|
} elsif($modifier eq "none") {
|
||||||
$result= $value;
|
$result= $value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user