From 69f7ee6aa72f0c14f7d4026ef312907e3b8c0bec Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Fri, 30 May 2014 13:20:19 -0300 Subject: [PATCH] remove console logs --- app/controllers/blocks.js | 5 ----- lib/BlockDb.js | 1 - 2 files changed, 6 deletions(-) diff --git a/app/controllers/blocks.js b/app/controllers/blocks.js index 955fbdb0a..2de390d4f 100644 --- a/app/controllers/blocks.js +++ b/app/controllers/blocks.js @@ -100,7 +100,6 @@ exports.list = function(req, res) { var dateStr; var todayStr = formatTimestamp(new Date()); -console.log('[blocks.js.102]'); //TODO if (req.query.blockDate) { // TODO: Validate format yyyy-mm-dd dateStr = req.query.blockDate; @@ -110,18 +109,14 @@ console.log('[blocks.js.102]'); //TODO isToday = true; } var gte = Math.round((new Date(dateStr)).getTime() / 1000); -console.log('[blocks.js.112:gte:]',gte); //TODO //pagination var lte = parseInt(req.query.startTimestamp) || gte + 86400; -console.log('[blocks.js.115:lte:]',lte); //TODO var prev = formatTimestamp(new Date((gte - 86400) * 1000)); var next = lte ? formatTimestamp(new Date(lte * 1000)) :null; -console.log('[blocks.js.116:next:]',next, lte); //TODO var limit = parseInt(req.query.limit || DFLT_LIMIT) + 1; var more; -console.log('[blocks.js.119]'); //TODO bdb.getBlocksByDate(gte, lte, limit, function(err, blockList) { if (err) { diff --git a/lib/BlockDb.js b/lib/BlockDb.js index a90ac2e44..04b5f1c1b 100644 --- a/lib/BlockDb.js +++ b/lib/BlockDb.js @@ -301,7 +301,6 @@ BlockDb.prototype.getBlocksByDate = function(start_ts, end_ts, limit, cb) { limit: limit, reverse: 1, }; -console.log('[BlockDb.js.298:opts:]',opts); //TODO db.createReadStream(opts) .on('data', function (data) {