mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-01 15:44:52 +00:00
93_Log2Syslog: contrib 5.10.0
git-svn-id: https://svn.fhem.de/fhem/trunk@21597 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
001cbf1bd7
commit
e23664a83c
@ -499,12 +499,12 @@ sub Log2Syslog_Read {
|
||||
my $i = 0;
|
||||
$mlen = $+{mlen};
|
||||
$tail = $+{tail};
|
||||
$msg = substr($tail,0,$mlen);
|
||||
$msg = substr($tail,0,$mlen-(length($mlen)+1));
|
||||
chomp $msg;
|
||||
push @load, $msg;
|
||||
|
||||
if(length($tail) >= $mlen) {
|
||||
$tail = substr($tail,$mlen);
|
||||
$tail = substr($tail,$mlen-(length($mlen)+1));
|
||||
} else {
|
||||
$tail = "";
|
||||
}
|
||||
@ -515,11 +515,11 @@ sub Log2Syslog_Read {
|
||||
$i++;
|
||||
$mlen = $+{mlen};
|
||||
$tail = $+{tail};
|
||||
$msg = substr($tail,0,$mlen);
|
||||
$msg = substr($tail,0,$mlen-(length($mlen)+1));
|
||||
chomp $msg;
|
||||
push @load, $msg;
|
||||
next if(!$tail);
|
||||
$tail = substr($tail,$mlen);
|
||||
$tail = substr($tail,$mlen-(length($mlen)+1));
|
||||
Log2Syslog_Log3slog ($hash, 5, "Log2Syslog $name -> LEN$i: $mlen, MSG$i: $msg, TAIL$i: $tail");
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user