a better Log entry when using an attr disableCond with errors
git-svn-id: https://svn.fhem.de/fhem/trunk@6533 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -426,7 +426,10 @@ sub RandomTimer_isDisabled($) {
|
||||
|
||||
my $disable = AttrVal($hash->{NAME}, "disable", 0 );
|
||||
my $disableCond = AttrVal($hash->{NAME}, "disableCond", "");
|
||||
|
||||
$disable = $disable || eval ($disableCond);
|
||||
$@ =~ s/\n/ /g; Log3 ($hash, 3, "[$hash->{NAME}] " . $@) if ($@);
|
||||
|
||||
return $disable;
|
||||
}
|
||||
########################################################################
|
||||
|
||||
Reference in New Issue
Block a user