2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 19:04:20 +00:00

93_Log2Syslog: contrib 5.0.1

git-svn-id: https://svn.fhem.de/fhem/trunk@17414 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2018-09-27 19:13:58 +00:00
parent ee7e790394
commit 8c542b1c69

View File

@ -30,7 +30,7 @@
##########################################################################################################################
# Versions History:
#
# 5.0.1 27.09.2018 Log2Syslog_closesock if write error:.*
# 5.0.1 27.09.2018 Log2Syslog_closesock if write error:.* , delete readings code changed
# 5.0.0 26.09.2018 TCP-Server in Collector-mode, HIPCACHE added, PROFILE as Internal, Parse_Err_No as reading,
# octetCount attribute, TCP-SSL-support, set "reopen" command, code fixes
# 4.8.5 20.08.2018 BSD/parseFn parsing changed, BSD setpayload changed, new variable $IGNORE in parseFn
@ -1208,10 +1208,8 @@ sub Log2Syslog_Attr ($$$$) {
}
if ($aName =~ /makeEvent/) {
if($aVal =~ /intern/ || $cmd eq "del") {
foreach my $reading (grep { /MSG_/ } keys %{$defs{$name}{READINGS}}) {
readingsDelete($defs{$name}, $reading);
}
foreach my $key(keys%{$defs{$name}{READINGS}}) {
delete($defs{$name}{READINGS}{$key}) if($key !~ /state|Transfered_logs_per_minute|SSL_.*|Parse_Err_No/);
}
}