From 8723a7b97afe12e92f07a3f1a14b46cf6cd778f2 Mon Sep 17 00:00:00 2001 From: william mantly Date: Fri, 24 Jun 2016 12:39:39 -0400 Subject: [PATCH] stuff --- routes/api.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/routes/api.js b/routes/api.js index 10d0404..e943519 100644 --- a/routes/api.js +++ b/routes/api.js @@ -62,7 +62,9 @@ var workers = (function(){ workers.destroy = function(worker){ var worker = worker || workers.pop(); - return doapi.dropletDestroy(worker.id, console.log); + return doapi.dropletDestroy(worker.id, function(body) { + console.log('body of destroy', body) + }); }; workers.makeWorkerObj = function(worker){ @@ -100,6 +102,7 @@ var workers = (function(){ doapi.dropletsByTag('clworker', function(data){ data = JSON.parse(data); data['droplets'].forEach(function(worker){ + console.log('current worker ids', currentIDs) if(~currentIDs.indexOf(worker.id)) return false; console.log('found old droplet, killing it'); @@ -235,7 +238,7 @@ var run = function(req, res, runner, count){ code: req.body.code }) }; - console.log('run', runner); + console.log('run'); return request.post(httpOptions, function(error, response, body){