2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

YAMAHA_AVR: changing loglevel for CustomGetFileFromURL to undef for standard queries

git-svn-id: https://svn.fhem.de/fhem/trunk@4281 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2013-11-24 10:54:21 +00:00
parent a27897fef0
commit 404710f67b

View File

@ -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) , "<?xml version=\"1.0\" encoding=\"utf-8\"?>".$command, 0, ($hash->{helper}{AVAILABLE} ? $loglevel : 5));
$response = CustomGetFileFromURL(0, "http://".$address."/YamahaRemoteControl/ctrl", AttrVal($name, "request-timeout", 4) , "<?xml version=\"1.0\" encoding=\"utf-8\"?>".$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);