From 12065cfc0bdae35af9b2dccde4d004bde1d5a42a Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Fri, 5 Jun 2015 17:58:34 +0200 Subject: [PATCH] Removed useless logs --- controllers/prototype/dbrequests.js | 2 -- controllers/prototype/index.js | 4 ---- 2 files changed, 6 deletions(-) diff --git a/controllers/prototype/dbrequests.js b/controllers/prototype/dbrequests.js index a19edff..b1435ad 100644 --- a/controllers/prototype/dbrequests.js +++ b/controllers/prototype/dbrequests.js @@ -361,8 +361,6 @@ ExpIdChecker.prototype.execute = function() { "SELECT scene_id FROM experiment WHERE id = $1;", [self.id], function(err, result) { - console.log(err); - console.log(result); if (result === undefined) { self.finalResult = null; } else { diff --git a/controllers/prototype/index.js b/controllers/prototype/index.js index b43526c..7f2db59 100644 --- a/controllers/prototype/index.js +++ b/controllers/prototype/index.js @@ -46,10 +46,8 @@ var generateSceneNumber = function(req, res) { } else { req.session.scenes = randomArray(); req.session.currentSceneIndex = 0; - console.log("Init : " + req.session.scenes); } - console.log("SceneIndex : " + req.session.currentSceneIndex); return req.session.scenes[req.session.currentSceneIndex]; } @@ -106,14 +104,12 @@ module.exports.replay = function(req, res, next) { res.locals.id = tools.filterInt(req.params.id); db.checkExpId(res.locals.id, function(scene_id) { - console.log("Scene_id = " + scene_id); if (scene_id === null) { var err = new Error("This replay does not exist"); err.status = 404; next(err); } else { res.locals.initjs = sceneToFunction(scene_id); - console.log(scene_id + " " + res.locals.initjs); res.setHeader('Content-Type', 'text/html'); res.render('prototype_replays.jade', res.locals, function(err, result) { res.send(result);