From 9e79336c35c7ea79dd67f03673594e7c1850cc54 Mon Sep 17 00:00:00 2001
From: tobiasfaust <>
Date: Sat, 30 May 2015 11:03:38 +0000
Subject: [PATCH] 93_DbLog.pm: resolve some bugs
git-svn-id: https://svn.fhem.de/fhem/trunk@8653 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
fhem/FHEM/93_DbLog.pm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/fhem/FHEM/93_DbLog.pm b/fhem/FHEM/93_DbLog.pm
index 174ff70e0..4f92be248 100644
--- a/fhem/FHEM/93_DbLog.pm
+++ b/fhem/FHEM/93_DbLog.pm
@@ -522,7 +522,7 @@ sub DbLog_Log($$) {
for (my $i = 0; $i < $max; $i++) {
my $s = $dev->{CHANGED}[$i];
$s = "" if(!defined($s));
- if($n =~ m/^$re$/ || "$n:$s" =~ m/^$re$/) {
+ if($n =~ m/^$re$/ || "$n:$s" =~ m/^$re$/ || $DbLogSelectionMode eq 'Include') {
my $ts = $ts_0;
$ts = $dev->{CHANGETIME}[$i] if(defined($dev->{CHANGETIME}[$i]));
# $ts is in SQL format YYYY-MM-DD hh:mm:ss
@@ -2024,7 +2024,7 @@ sub dbReadings($@) {
Thise DbLog-Device-Attribute specifies how the device specific Attributes DbLogExclude and DbLogInclude are handled.
If this Attribute is missing it defaults to "Exclude".
- - Exclude: DbLog behaves just as usual. This means everything will be logged by default and anything excluded
+
- Exclude: DbLog behaves just as usual. This means everything specified in the regex in DEF will be logged by default and anything excluded
via the DbLogExclude attribute will not be logged
- Include: Nothing will be logged, except the readings specified via regex in the DbLogInclude attribute
@@ -2394,9 +2394,9 @@ sub dbReadings($@) {
- Exclude: DbLog verhaelt sich wie bisher auch, alles was ueber die RegExp im DEF angegeben ist, wird geloggt, bis auf das,
was ueber die RegExp in DbLogExclude ausgeschlossen wird
Das Attribut DbLogInclude wird in diesem Fall nicht beruecksichtigt
- - Include: Es wird nur das geloggt, was ueber die RegExp im DEF angegenben wurde und sonst nichts, es sei denn es wird
- ueber die RegExp in DbLogInclude eingeschlossen.
- Das Attribut DbLogExclude wird in diesem Fall nicht beruecksichtigt.
+ - Include: Es wird nur das geloggt was ueber die RegExp in DbLogInclude eingeschlossen wird.
+ Das Attribut DbLogExclude wird in diesem Fall nicht beruecksichtigt, ebenso wenig, wie
+ die regex im DEF.
- Exclude/Include: Funktioniert im Wesentlichen, wie "Exclude", nur das sowohl DbLogExclude, als auch DbLogInclude
geprueft werden: Readings, die durch DbLogExclude zwar ausgeschlossen wurden, mit DbLogInclude aber wiederum eingeschlossen wwrden,