Authored by 姜枫

add log

... ... @@ -72,8 +72,12 @@ class ApiCache {
let self = this;
conn.on('ready', async() => {
try {
conn.exec(`sudo kill -9 ${pid}`, (err, stream) => {
conn.end();
conn.exec(`sudo kill ${pid}`, (err, stream) => {
if(err) {
console.log(err);
} else {
console.log(`sudo kill ${pid} --> success`);
}
});
} catch (e) {
console.log(e);
... ...