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);