From 944e013a2581b3629ea1f75fd50fa35be6a7ec9e Mon Sep 17 00:00:00 2001 From: DS_Starter Date: Mon, 19 Dec 2022 22:23:30 +0000 Subject: [PATCH] 93_DbLog: contrib 5.5.7 git-svn-id: https://svn.fhem.de/fhem/trunk@26873 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/93_DbLog.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fhem/contrib/DS_Starter/93_DbLog.pm b/fhem/contrib/DS_Starter/93_DbLog.pm index 4f3dcbd68..b7f877379 100644 --- a/fhem/contrib/DS_Starter/93_DbLog.pm +++ b/fhem/contrib/DS_Starter/93_DbLog.pm @@ -2944,7 +2944,10 @@ sub _DbLog_SBP_onRun_LogArray { Log3 ($name, 4, "DbLog $name - Transaction is switched on. Transferred data is returned to the cache."); } - }; + } + else { + __DbLog_SBP_commitOnly ($name, $dbh, $history); + } no warnings 'uninitialized'; @@ -2989,9 +2992,7 @@ sub _DbLog_SBP_onRun_LogArray { } } - __DbLog_SBP_commitOnly ($name, $dbh, $history) if(!$error); - - if(defined $rowhref) { # nicht gespeicherte Datensätze ausgeben + if (defined $rowhref) { # nicht gespeicherte Datensätze ausgeben Log3 ($name, 2, "DbLog $name - The following data are faulty and were not saved:"); DbLog_logHashContent ($name, $rowhref, 2);