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) => {
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);
});
});