From b5a625c6cd6e726f05dcea476e7f43c4f58df9c7 Mon Sep 17 00:00:00 2001 From: wherzig <> Date: Mon, 16 Sep 2013 20:14:27 +0000 Subject: [PATCH] correct Log3 git-svn-id: https://svn.fhem.de/fhem/trunk@3918 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/46_TRX_LIGHT.pm | 5 ++--- fhem/FHEM/46_TRX_SECURITY.pm | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/fhem/FHEM/46_TRX_LIGHT.pm b/fhem/FHEM/46_TRX_LIGHT.pm index 18b80dba0..bf7395ae6 100755 --- a/fhem/FHEM/46_TRX_LIGHT.pm +++ b/fhem/FHEM/46_TRX_LIGHT.pm @@ -770,7 +770,7 @@ sub TRX_LIGHT_parse_PT2262 ($$) Log3 $name, 5,"PT2262: found=$1"; $command = $1; } - Log3 $name, 1,"TRX_LIGHT_parse_PT2262() readingsBulkUpdate($def, $sensor, $command)"; + Log3 $name, 5,"TRX_LIGHT_parse_PT2262() readingsBulkUpdate($def, $sensor, $command)"; $val = $command; if ($sensor ne "none") { readingsBulkUpdate($def, $sensor, $val); } } @@ -817,12 +817,11 @@ TRX_LIGHT_Parse($$) #Log3 $iohash, 5, "TRX_LIGHT: num_bytes=$num_bytes hex=$hexline type=$type"; my $res = ""; if ($type == 0x10 || $type == 0x11 || $type == 0x12 || $type == 0x14) { - Log3 $iohash, 1, "TRX_LIGHT_Parse() X10 num_bytes=$num_bytes hex=$hexline"; + Log3 $iohash, 5, "TRX_LIGHT_Parse() X10 num_bytes=$num_bytes hex=$hexline"; $res = TRX_LIGHT_parse_X10($iohash, \@rfxcom_data_array); Log3 $iohash, 1, "TRX_LIGHT_Parse() unsupported hex=$hexline" if ($res eq ""); return $res; } elsif ($type == 0x13) { - #Log3 $iohash, 1, "TRX_LIGHT_Parse() Lighting4/PT2262 num_bytes=$num_bytes hex=$hexline"; Log3 $iohash, 5, "TRX_LIGHT_Parse()Lighting4/PT2262 num_bytes=$num_bytes hex=$hexline"; $res = TRX_LIGHT_parse_PT2262($iohash, \@rfxcom_data_array); Log3 $iohash, 1, "TRX_LIGHT_Parse() unsupported hex=$hexline" if ($res eq ""); diff --git a/fhem/FHEM/46_TRX_SECURITY.pm b/fhem/FHEM/46_TRX_SECURITY.pm index cbf574f78..c450c59f7 100755 --- a/fhem/FHEM/46_TRX_SECURITY.pm +++ b/fhem/FHEM/46_TRX_SECURITY.pm @@ -166,7 +166,7 @@ TRX_SECURITY_Set($@) # lightning1 $hex_prefix = sprintf "0820"; $hex_command = sprintf "%02x%02x%02s%02s%02s%02x00", $device_type_num & 0xff, $seqnr, $id1, $id2, $id3, $cmnd; - Log3 $name, 1,"TRX_SECURITY_Set() name=$name device_type=$device_type, deviceid=$deviceid id1=$id1, id2=$id2, id3=$id3, command=$command"; + Log3 $name, 5,"TRX_SECURITY_Set() name=$name device_type=$device_type, deviceid=$deviceid id1=$id1, id2=$id2, id3=$id3, command=$command"; Log3 $name, 5,"TRX_SECURITY_Set() hexline=$hex_prefix$hex_command"; if ($device_type ne "KD101") { @@ -415,7 +415,7 @@ sub TRX_SECURITY_parse_X10Sec($$) { if ($battery_level == 0x9) { $battery = 'batt_ok'} elsif ($battery_level == 0x0) { $battery = 'batt_low'} else { - Log3 $name, 1,"TRX_SECURITY_parse_X10Sec() unkown battery_level=$battery_level"; + Log3 $name, 1,"TRX_SECURITY_parse_X10Sec() unknown battery_level=$battery_level"; } } @@ -566,7 +566,7 @@ TRX_SECURITY_Parse($$) Log3 $iohash, 1, "TRX_SECURITY_Parse() unsupported hex=$hexline" if ($res eq ""); return $res; } else { - Log3 $iohash, 0, "TRX_SECURITY_Parse() not implemented num_bytes=$num_bytes hex=$hexline"; + Log3 $iohash, 1, "TRX_SECURITY_Parse() not implemented num_bytes=$num_bytes hex=$hexline"; } return "";