From ed2480c328609e8ef8dd4b8aa2345ff0bbc234ee Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Tue, 20 Dec 2022 13:50:53 +0000 Subject: [PATCH] 93_DbLog: contrib 5.5.7 git-svn-id: https://svn.fhem.de/fhem/trunk@26877 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/93_DbLog.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fhem/contrib/DS_Starter/93_DbLog.pm b/fhem/contrib/DS_Starter/93_DbLog.pm index 85ebdf8c8..2ef0da436 100644 --- a/fhem/contrib/DS_Starter/93_DbLog.pm +++ b/fhem/contrib/DS_Starter/93_DbLog.pm @@ -2565,6 +2565,7 @@ sub _DbLog_SBP_onRun_connectDB { $dbh = DBI->connect("dbi:$dbconn", $dbuser, $dbpassword, { PrintError => 0, RaiseError => 1, AutoCommit => 0, + ShowErrorStatement => 1, AutoInactiveDestroy => 1 } ); 1; @@ -2573,6 +2574,7 @@ sub _DbLog_SBP_onRun_connectDB { $dbh = DBI->connect("dbi:$dbconn", $dbuser, $dbpassword, { PrintError => 0, RaiseError => 1, AutoCommit => 1, + ShowErrorStatement => 1, AutoInactiveDestroy => 1 } ); 1; @@ -2580,6 +2582,7 @@ sub _DbLog_SBP_onRun_connectDB { else { # Server default $dbh = DBI->connect("dbi:$dbconn", $dbuser, $dbpassword, { PrintError => 0, RaiseError => 1, + ShowErrorStatement => 1, AutoInactiveDestroy => 1 } ); 1; @@ -2968,6 +2971,9 @@ sub _DbLog_SBP_onRun_LogArray { Log3 ($name, 4, "DbLog $name - Transaction is switched on. Transferred data is returned to the cache."); } + else { + Log3 ($name, 2, "DbLog $name - Transaction is switched off. Transferred data is lost."); + } } else { __DbLog_SBP_commitOnly ($name, $dbh, $history);