From e4f0c7cd9882ec6be015cebd46309b7927a7037f Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 13 Jan 2022 09:54:47 -0500 Subject: [PATCH] Fix debug output from zmDbDo --- scripts/ZoneMinder/lib/ZoneMinder/Database.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Database.pm b/scripts/ZoneMinder/lib/ZoneMinder/Database.pm index e4809381e..ae1259814 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Database.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Database.pm @@ -275,7 +275,7 @@ sub zmDbDo { Error(sprintf("Failed $sql :", @_).$dbh->errstr()); } elsif ( ZoneMinder::Logger::logLevel() > INFO ) { $sql =~ s/\?/'%s'/; - Debug(sprintf("Failed $sql :", @_).$dbh->errstr()); + Debug(sprintf("Succeeded $sql : $rows rows affected", @_)); } return $rows; }