Skip to content
Snippets Groups Projects
Commit 2e1f4e5a authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Fix #305 Logs were stopped

parent dbdd2839
No related branches found
No related tags found
No related merge requests found
......@@ -24,12 +24,9 @@ switch (process.argv[2]) {
break;
case "logs":
let stats = fs.statSync(directory.INSTANCE_HOMELOG_FILE);
let fileSizeInBytes = stats.size;
let lastLines = 0.995 * fileSizeInBytes;
var tail = new Tail(directory.INSTANCE_HOMELOG_FILE, '\n', {
interval: 5,
start: Math.max(0, lastLines)
start: 0
});
tail.on("line", function(data) {
console.log(data);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment