Add debugging to zmDbDo
This commit is contained in:
parent
152efd0987
commit
9243b1d081
|
@ -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("Failed $sql :", @_).$dbh->errstr());
|
||||||
}
|
}
|
||||||
return $rows;
|
return $rows;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue