comment out console debugging

This commit is contained in:
AJ ONeal 2015-10-05 23:31:07 -07:00
parent 26311eba3b
commit 81a7bd3811
1 changed files with 4 additions and 3 deletions

View File

@ -165,7 +165,7 @@ function wrap(db, dir) {
if (success) { if (success) {
return result; return result;
} else { } else {
console.log('[debug result of set]', result.sql); //console.log('[debug result of set]', result.sql);
delete result.sql; delete result.sql;
console.log(result); 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) { db.run(sql, [], function (err) {
if (err) { if (err) {
reject(err); reject(err);
@ -291,8 +291,9 @@ function wrap(db, dir) {
// removes known fields from data // removes known fields from data
var sql = strainUpdate(id, data/*, vals*/, sqlTpl); 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) { db.run(sql, /*vals*/[], function (err) {
//console.log('[debug] error:', err);
if (err) { if (err) {
reject(err); reject(err);
return; return;