From 8f089682d5c768f66b4e1e1c7a4419964b97693f Mon Sep 17 00:00:00 2001 From: markusbloch Date: Sun, 24 Nov 2013 10:54:21 +0000 Subject: [PATCH] YAMAHA_AVR: changing loglevel for CustomGetFileFromURL to undef for standard queries git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@4281 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/71_YAMAHA_AVR.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/71_YAMAHA_AVR.pm b/fhem/FHEM/71_YAMAHA_AVR.pm index 5c0a6fd90..a367d5216 100755 --- a/fhem/FHEM/71_YAMAHA_AVR.pm +++ b/fhem/FHEM/71_YAMAHA_AVR.pm @@ -624,7 +624,7 @@ YAMAHA_AVR_SendCommand($$;$) # In case any URL changes must be made, this part is separated in this function". - $response = CustomGetFileFromURL(0, "http://".$address."/YamahaRemoteControl/ctrl", AttrVal($name, "request-timeout", 4) , "".$command, 0, ($hash->{helper}{AVAILABLE} ? $loglevel : 5)); + $response = CustomGetFileFromURL(0, "http://".$address."/YamahaRemoteControl/ctrl", AttrVal($name, "request-timeout", 4) , "".$command, 0, ($hash->{helper}{AVAILABLE} ? undef : 5)); Log3 $name, 5, "YAMAHA_AVR: got response for $name: $response" if(defined($response)); @@ -806,7 +806,7 @@ sub YAMAHA_AVR_getModel($) } # query the description url which contains all zones - $response = CustomGetFileFromURL(0, "http://".$address.$desc_url, AttrVal($name, "request-timeout", 4), undef, 0, ($hash->{helper}{AVAILABLE} ? 3 : 5)); + $response = CustomGetFileFromURL(0, "http://".$address.$desc_url, AttrVal($name, "request-timeout", 4), undef, 0, ($hash->{helper}{AVAILABLE} ? undef : 5)); Log3 $name, 3, "YAMAHA_AVR: could not get unit description from device $name. Please turn on the device or check for correct hostaddress!" if (not defined($response) and defined($hash->{helper}{AVAILABLE}) and $hash->{helper}{AVAILABLE} eq 1);