2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

Blocking.pm: specify loglevel for Timout messages (Forum #77057)

git-svn-id: https://svn.fhem.de/fhem/trunk@15128 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-09-24 08:16:16 +00:00
parent 4e35d07ed0
commit 52076bed65

View File

@ -252,7 +252,8 @@ BlockingKill($)
if($^O !~ m/Win/) { if($^O !~ m/Win/) {
if($h->{pid} && $h->{pid} !~ m/:/ && kill(9, $h->{pid})) { if($h->{pid} && $h->{pid} !~ m/:/ && kill(9, $h->{pid})) {
Log 1, "Timeout for $h->{fn} reached, terminated process $h->{pid}"; my $ll = (defined($h->{loglevel}) ? $h->{loglevel} : 1); # Forum #77057
Log $ll, "Timeout for $h->{fn} reached, terminated process $h->{pid}";
if($h->{abortFn}) { if($h->{abortFn}) {
no strict "refs"; no strict "refs";
my $ret = &{$h->{abortFn}}($h->{abortArg}); my $ret = &{$h->{abortFn}}($h->{abortArg});