mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 07:16:03 +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:
parent
6f39699e8e
commit
a5a6ce347f
@ -305,12 +305,12 @@ sub XBMC_ProcessRead($$)
|
|||||||
Log3($name, 5, "XBMC_Read: Incoming data: " . $data);
|
Log3($name, 5, "XBMC_Read: Incoming data: " . $data);
|
||||||
|
|
||||||
$buffer = $buffer . $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);
|
my ($msg,$tail) = XBMC_ParseMsg($hash, $buffer);
|
||||||
#processes all complete messages
|
#processes all complete messages
|
||||||
while($msg) {
|
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);
|
my $obj = JSON->new->utf8(0)->decode($msg);
|
||||||
#it is a notification if a method name is present
|
#it is a notification if a method name is present
|
||||||
if(defined($obj->{method})) {
|
if(defined($obj->{method})) {
|
||||||
@ -668,7 +668,7 @@ sub XBMC_ParseMsg($$)
|
|||||||
$tail .= $c;
|
$tail .= $c;
|
||||||
}
|
}
|
||||||
elsif(($open == $close) && ($c ne '{')) {
|
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 {
|
else {
|
||||||
if($c eq '{') {
|
if($c eq '{') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user