Fix debug output from zmDbDo
This commit is contained in:
parent
3ec6c7e32f
commit
58bd09d83d
|
@ -1 +1 @@
|
||||||
Subproject commit 1b40f1661f93f50fd5805f239d1e466a3bcf888f
|
Subproject commit cd7fd49becad6010a1b8466bfebbd93999a39878
|
|
@ -273,6 +273,9 @@ sub zmDbDo {
|
||||||
if ( ! defined $rows ) {
|
if ( ! defined $rows ) {
|
||||||
$sql =~ s/\?/'%s'/;
|
$sql =~ s/\?/'%s'/;
|
||||||
Error(sprintf("Failed $sql :", @_).$dbh->errstr());
|
Error(sprintf("Failed $sql :", @_).$dbh->errstr());
|
||||||
|
} elsif ( ZoneMinder::Logger::logLevel() > INFO ) {
|
||||||
|
$sql =~ s/\?/'%s'/;
|
||||||
|
Debug(sprintf("Succeeded $sql : $rows rows affected", @_));
|
||||||
}
|
}
|
||||||
return $rows;
|
return $rows;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue