From 52076bed6556e702dfb86a08cdd5ea3a39d22e62 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 24 Sep 2017 08:16:16 +0000 Subject: [PATCH] Blocking.pm: specify loglevel for Timout messages (Forum #77057) git-svn-id: https://svn.fhem.de/fhem/trunk@15128 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/Blocking.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/Blocking.pm b/fhem/FHEM/Blocking.pm index 0b3cf62ad..0d5a78449 100644 --- a/fhem/FHEM/Blocking.pm +++ b/fhem/FHEM/Blocking.pm @@ -252,7 +252,8 @@ BlockingKill($) if($^O !~ m/Win/) { 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}) { no strict "refs"; my $ret = &{$h->{abortFn}}($h->{abortArg});