2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

70_XBMC: improved some log levels for cleaner log files

git-svn-id: https://svn.fhem.de/fhem/trunk@7739 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
vbs2 2015-01-26 20:37:20 +00:00
parent 6f39699e8e
commit a5a6ce347f

View File

@ -305,12 +305,12 @@ sub XBMC_ProcessRead($$)
Log3($name, 5, "XBMC_Read: Incoming data: " . $data);
$buffer = $buffer . $data;
Log3($name, 5, "XBMC_Read: Current processing buffer (PARTIAL + incoming data): " . $buffer);
Log3($name, 4, "XBMC_Read: Current processing buffer (PARTIAL + incoming data): " . $buffer);
my ($msg,$tail) = XBMC_ParseMsg($hash, $buffer);
#processes all complete messages
while($msg) {
Log3($name, 5, "XBMC_Read: Decoding JSON message. Length: " . length($msg) . " Content: " . $msg);
Log3($name, 4, "XBMC_Read: Decoding JSON message. Length: " . length($msg) . " Content: " . $msg);
my $obj = JSON->new->utf8(0)->decode($msg);
#it is a notification if a method name is present
if(defined($obj->{method})) {
@ -668,7 +668,7 @@ sub XBMC_ParseMsg($$)
$tail .= $c;
}
elsif(($open == $close) && ($c ne '{')) {
Log3($name, 5, "XBMC_ParseMsg: Garbage character before message: " . $c);
Log3($name, 3, "XBMC_ParseMsg: Garbage character before message: " . $c);
}
else {
if($c eq '{') {