Removed useless logs

This commit is contained in:
Thomas FORGIONE 2015-06-05 17:58:34 +02:00
parent c8d10094d9
commit 12065cfc0b
2 changed files with 0 additions and 6 deletions

View File

@ -361,8 +361,6 @@ ExpIdChecker.prototype.execute = function() {
"SELECT scene_id FROM experiment WHERE id = $1;", "SELECT scene_id FROM experiment WHERE id = $1;",
[self.id], [self.id],
function(err, result) { function(err, result) {
console.log(err);
console.log(result);
if (result === undefined) { if (result === undefined) {
self.finalResult = null; self.finalResult = null;
} else { } else {

View File

@ -46,10 +46,8 @@ var generateSceneNumber = function(req, res) {
} else { } else {
req.session.scenes = randomArray(); req.session.scenes = randomArray();
req.session.currentSceneIndex = 0; req.session.currentSceneIndex = 0;
console.log("Init : " + req.session.scenes);
} }
console.log("SceneIndex : " + req.session.currentSceneIndex);
return req.session.scenes[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); res.locals.id = tools.filterInt(req.params.id);
db.checkExpId(res.locals.id, function(scene_id) { db.checkExpId(res.locals.id, function(scene_id) {
console.log("Scene_id = " + scene_id);
if (scene_id === null) { if (scene_id === null) {
var err = new Error("This replay does not exist"); var err = new Error("This replay does not exist");
err.status = 404; err.status = 404;
next(err); next(err);
} else { } else {
res.locals.initjs = sceneToFunction(scene_id); res.locals.initjs = sceneToFunction(scene_id);
console.log(scene_id + " " + res.locals.initjs);
res.setHeader('Content-Type', 'text/html'); res.setHeader('Content-Type', 'text/html');
res.render('prototype_replays.jade', res.locals, function(err, result) { res.render('prototype_replays.jade', res.locals, function(err, result) {
res.send(result); res.send(result);