Skip to content

Commit

Permalink
Merge pull request #130 from bruce-one/false-follow
Browse files Browse the repository at this point in the history
Fix bug on --follow flag.
  • Loading branch information
lucagrulla authored Apr 11, 2021
2 parents 91c4f81 + 2feb1e9 commit 0212036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tail.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Tail extends events.EventEmitter {
this.absPath = path.dirname(this.filename);
this.separator = (options.separator !== undefined) ? options.separator : /[\r]{0,1}\n/;// null is a valid param
this.fsWatchOptions = options.fsWatchOptions || {};
this.follow = options.follow || true;
this.follow = 'follow' in options ? options.follow : true;
this.logger = options.logger || new devNull();
this.useWatchFile = options.useWatchFile || false;
this.flushAtEOF = options.flushAtEOF || false;
Expand Down

0 comments on commit 0212036

Please sign in to comment.