2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

90_at.pm: fix log messages (Forum #42692)

git-svn-id: https://svn.fhem.de/fhem/trunk@9589 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-10-22 11:26:20 +00:00
parent b22fc5cc1a
commit 64599fedd2

View File

@ -130,15 +130,15 @@ at_Exec($)
return if($hash->{DELETED}); # Just deleted
my $name = $hash->{NAME};
Log3 $name, 5, "exec at command $name";
my $skip = AttrVal($name, "skip_next", undef);
delete $attr{$name}{skip_next} if($skip);
my $command = SemicolonEscape($hash->{COMMAND});
my $ret = AnalyzeCommandChain(undef, $command)
if(!$skip && !IsDisabled($name));
Log3 $name, 3, "$name: $ret" if($ret);
if(!$skip && !IsDisabled($name)) {
Log3 $name, 5, "exec at command $name";
my $ret = AnalyzeCommandChain(undef, SemicolonEscape($hash->{COMMAND}));
Log3 $name, 3, "$name: $ret" if($ret);
}
return if($hash->{DELETED}); # Deleted in the Command