mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
tweak tail.js to only send changed/new lines.
This commit is contained in:
parent
972e6fc6b3
commit
b3c3bffeaa
@ -28,7 +28,7 @@ module.exports = function(RED) {
|
|||||||
|
|
||||||
var err = "";
|
var err = "";
|
||||||
// TODO: rewrite to use node-tail
|
// TODO: rewrite to use node-tail
|
||||||
var tail = spawn("tail", ["-F", this.filename]);
|
var tail = spawn("tail", ["-F", "-n", "0", this.filename]);
|
||||||
tail.stdout.on("data", function (data) {
|
tail.stdout.on("data", function (data) {
|
||||||
if (node.split) {
|
if (node.split) {
|
||||||
// TODO: allow customisation of the line break - as we do elsewhere
|
// TODO: allow customisation of the line break - as we do elsewhere
|
||||||
|
Loading…
Reference in New Issue
Block a user