From a8d9a0f95a1a0ebce9d16a8d10fdffba909a452b Mon Sep 17 00:00:00 2001 From: lub Date: Sun, 15 Oct 2017 18:04:56 +0200 Subject: [PATCH] remove console.log debug statements in remoteExec.js --- remoteExec.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/remoteExec.js b/remoteExec.js index 370226a..074d5a9 100644 --- a/remoteExec.js +++ b/remoteExec.js @@ -3,7 +3,6 @@ const ssh = new nodeSsh(); module.exports = (command, config) => { - console.log('l6'); return new Promise(function(resolve, reject) { ssh.connect({ host: config.ssh.host, @@ -14,18 +13,14 @@ module.exports = (command, config) => { ssh.execCommand('/usr/bin/sudo -- ' + command, {cwd: config.infrastructure}) .then(function(result) { if(result.code === 0) { - console.log('l17'); resolve(result); } else { - console.log('l20'); reject(result); } }, function(result) { - console.log('l24'); reject(result); }) }, function(result) { - console.log('l28'); reject(result); }); });