2
0
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:
rudolfkoenig 2019-08-08 09:21:00 +00:00
parent b3fdd92c03
commit 3589413b7f

View File

@ -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;