Add debugging to zmDbDo
This commit is contained in:
parent
152efd0987
commit
9243b1d081
|
@ -273,6 +273,9 @@ sub zmDbDo {
|
|||
if ( ! defined $rows ) {
|
||||
$sql =~ s/\?/'%s'/;
|
||||
Error(sprintf("Failed $sql :", @_).$dbh->errstr());
|
||||
} elsif ( ZoneMinder::Logger::logLevel() > INFO ) {
|
||||
$sql =~ s/\?/'%s'/;
|
||||
Debug(sprintf("Failed $sql :", @_).$dbh->errstr());
|
||||
}
|
||||
return $rows;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue