Fix 'debug: false' option in DB.queryAsync()
This commit is contained in:
parent
d0d818840a
commit
d53b9b993f
1 changed files with 2 additions and 1 deletions
|
@ -788,8 +788,9 @@ Zotero.DBConnection.prototype.columnQueryAsync = function (sql, params) {
|
|||
|
||||
|
||||
Zotero.DBConnection.prototype.logQuery = function (sql, params, options) {
|
||||
if (options && options.debug === false) return;
|
||||
var msg = sql;
|
||||
if (params.length && (!options || options.debug === undefined || options.debug === true)) {
|
||||
if (params.length) {
|
||||
msg += " [";
|
||||
for (let i = 0; i < params.length; i++) {
|
||||
let param = params[i];
|
||||
|
|
Loading…
Reference in a new issue