diff --git a/lib/tail.js b/lib/tail.js index 7d074a2..0a7fb75 100644 --- a/lib/tail.js +++ b/lib/tail.js @@ -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) {