mirror of https://github.com/mthenw/frontail.git
commit
b025ff6dbd
|
@ -25,9 +25,10 @@ var Tail = function (path, options) {
|
|||
}
|
||||
|
||||
tail.stderr.on('data', function (data) {
|
||||
//if there is any error then display it in the console and then kill the tail.
|
||||
console.error(data.toString());
|
||||
process.exit();
|
||||
//if there is any important errors then display it in the console. Tail will keep running.
|
||||
if (data.toString().indexOf('file truncated') === -1) { // File kan be truncated over network.
|
||||
console.error(data.toString());
|
||||
}
|
||||
});
|
||||
|
||||
tail.stdout.on('data', function (data) {
|
||||
|
|
Loading…
Reference in New Issue