cattery-command-server
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -36,3 +36,3 @@ | ||
server.stdout.on('data', function(chunk){ | ||
// console.log(chunk.toString('utf8')); | ||
console.log(chunk.toString('utf8')); | ||
if(ready) return; | ||
@@ -50,3 +50,4 @@ chunk = chunk.toString('utf8'); | ||
}, 200); | ||
} else if(chunk.indexOf('Exception') > 0) { | ||
} | ||
else if(chunk.indexOf('Exception') > 0 && chunk.indexOf('ERROR') > 0) { | ||
process.stdout.write(' fail\n'); | ||
@@ -60,3 +61,3 @@ try { process.kill(server.pid, 'SIGKILL'); } catch(e){} | ||
} | ||
console.log(log); | ||
console.log(chunk); | ||
fis.log.error(errMsg); | ||
@@ -80,4 +81,4 @@ } | ||
} else if(chunk.indexOf('Exception') > 0) { | ||
process.stdout.write(' fail\n'); | ||
try { process.kill(server.pid, 'SIGKILL'); } catch(e){} | ||
process.stdout.write(' here\n'); | ||
// try { process.kill(server.pid, 'SIGKILL'); } catch(e){} | ||
var match = chunk.match(/exception:?\s+([^\r\n]+)/i); | ||
@@ -89,3 +90,3 @@ if(match){ | ||
} | ||
console.log(log); | ||
console.log(chunk.toString('utf8')); | ||
fis.log.error(errMsg); | ||
@@ -92,0 +93,0 @@ } |
{ | ||
"name": "cattery-command-server", | ||
"description": "cattery server command.", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "pianist", |
Sorry, the diff of this file is not supported yet
23643948
927