From 47c0879b8642f96a862830df2714b84e79ab28e4 Mon Sep 17 00:00:00 2001 From: Sefinek Date: Wed, 25 Dec 2024 01:50:49 +0100 Subject: [PATCH] Fixes --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ac29dff..ae3e86b 100644 --- a/index.js +++ b/index.js @@ -121,8 +121,8 @@ const processLogLine = async line => { .on('change', path => { const stats = fs.statSync(path); if (stats.size < fileOffset) { - log(1, 'File truncated. Resetting offset...'); fileOffset = 0; + log(1, 'The file has been truncated, and the offset has been reset.'); } fs.createReadStream(path, { start: fileOffset, encoding: 'utf8' }).on('data', chunk => {