remove console.log debug statements in remoteExec.js

develop
lub 7 years ago
parent 07f879b645
commit 82b82bc4b5

@ -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);
});
});