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 => {