diff --git a/routes/api.js b/routes/api.js index 4fee5db..90ca4dd 100644 --- a/routes/api.js +++ b/routes/api.js @@ -87,9 +87,9 @@ router.get('/list', function(req, res, next) { router.post('/run/:ip?', function(req, res, next){ var runner = function(res, req, ip){ - console.log('runner on', ip,'with body:\n', typeof req.body); + console.log('runner on', ip,'with body:\n', JSON.stringify(req.body)); return request.post({url:'http://'+ip, body: JSON.stringify(req.body)}, function(error, response, body){ - // console.log('request args:', arguments) + console.log('request args:', arguments) body = JSON.parse(body); body['ip'] = ip.replace('10.0.', '') return res.json(body)