mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +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;
|
||||
$result= $value;
|
||||
} elsif(!defined($value)) {
|
||||
$cmdFromAnalyze = $perlCode; # For the __WARN__ sub
|
||||
warn("$name userReadings $reading evaluated to undef");
|
||||
if(AttrVal("global", "verbose", 3) >= 5) { #102868
|
||||
$cmdFromAnalyze = $perlCode; # For the __WARN__ sub
|
||||
warn("$name userReadings $reading evaluated to undef");
|
||||
}
|
||||
next;
|
||||
} elsif($modifier eq "none") {
|
||||
$result= $value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user