remove console.log debug statements in remoteExec.js

master
lub 7 years ago
parent 0681060c51
commit a8d9a0f95a

@ -3,7 +3,6 @@ const ssh = new nodeSsh();
module.exports = (command, config) => { module.exports = (command, config) => {
console.log('l6');
return new Promise(function(resolve, reject) { return new Promise(function(resolve, reject) {
ssh.connect({ ssh.connect({
host: config.ssh.host, host: config.ssh.host,
@ -14,18 +13,14 @@ module.exports = (command, config) => {
ssh.execCommand('/usr/bin/sudo -- ' + command, {cwd: config.infrastructure}) ssh.execCommand('/usr/bin/sudo -- ' + command, {cwd: config.infrastructure})
.then(function(result) { .then(function(result) {
if(result.code === 0) { if(result.code === 0) {
console.log('l17');
resolve(result); resolve(result);
} else { } else {
console.log('l20');
reject(result); reject(result);
} }
}, function(result) { }, function(result) {
console.log('l24');
reject(result); reject(result);
}) })
}, function(result) { }, function(result) {
console.log('l28');
reject(result); reject(result);
}); });
}); });