diff --git a/lib/dbwrap.js b/lib/dbwrap.js index e90c3b7..b302794 100644 --- a/lib/dbwrap.js +++ b/lib/dbwrap.js @@ -165,7 +165,7 @@ function wrap(db, dir) { if (success) { return result; } else { - console.log('[debug result of set]', result.sql); + //console.log('[debug result of set]', result.sql); delete result.sql; console.log(result); } @@ -197,7 +197,7 @@ function wrap(db, dir) { ; }); - console.log('[debug] DB.create() sql:', sql); + //console.log('[debug] DB.create() sql:', sql); db.run(sql, [], function (err) { if (err) { reject(err); @@ -291,8 +291,9 @@ function wrap(db, dir) { // removes known fields from data var sql = strainUpdate(id, data/*, vals*/, sqlTpl); - console.log('[debug] DB.set() sql:', sql); + //console.log('[debug] DB.set() sql:', sql); db.run(sql, /*vals*/[], function (err) { + //console.log('[debug] error:', err); if (err) { reject(err); return;