Skip to content

Commit 903863a

Browse files
committed
fix: use -F for tail command internaly
fixes #4
1 parent 68ef244 commit 903863a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,8 @@ program
352352

353353
if (follow) {
354354
const logPaths = logFiles.map(file => path.join(LOG_DIR, file));
355-
const tailArgs = ['-f'];
355+
// Follow by file name so tail continues after log rotation.
356+
const tailArgs = ['-F'];
356357

357358
if (lines) {
358359
tailArgs.push('-n', lines);

0 commit comments

Comments
 (0)