From 049972b2787df973d67bf7e6a54fc8c57afe6787 Mon Sep 17 00:00:00 2001 From: william Date: Mon, 25 Apr 2016 13:39:38 -0400 Subject: [PATCH] crunner is a go! --- routes/api.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/routes/api.js b/routes/api.js index 0e68e1b..f01df4d 100644 --- a/routes/api.js +++ b/routes/api.js @@ -21,16 +21,13 @@ var lxcTimeout = function(ip, time){ clearTimeout(timeoutEvents[name]) } timeoutEvents[name] = setTimeout(function(){ - console.log('killing:', name) lxc.stop(name); }, time); } var runner = function(req, res, ip){ - console.log('ip:', ip); lxcTimeout(ip); - console.log('code to run:', '\n'+req.body.code); var httpOptions = { url:'http://' + ip + ':15000', @@ -40,7 +37,6 @@ var runner = function(req, res, ip){ }; return request.post(httpOptions, function(error, response, body){ - console.log('body:\n', body); body = JSON.parse(body); body['ip'] = ip.replace('10.0.', ''); return res.json(body); @@ -63,7 +59,6 @@ var addToRedis = function(){ router.get('/start/:name', function(req, res, next){ return lxc.start(req.params.name, function(data){ - console.log('start', arguments); if(!data){ return res.json({status: 500, name: req.params.name, message: data}); }else{