Makeshure a new line is added everytime

Signed-off-by: Martin Karkowski <m.karkowski@dozema.local>
This commit is contained in:
Martin Karkowski 2021-10-18 21:41:59 +02:00
parent bd09efba45
commit 4094695ade

View File

@ -46,7 +46,7 @@ export function useLogFile(pathToFile = DEFAULT_FILE, bufferSize = 0): void {
// Define a function, that will write the content of the Buffer to our
// file.
const writeBufferToFile = function (cb: () => void = null) {
const textToStore = buffer.join("\n");
const textToStore = "\n" + buffer.join("\n");
readyToWrite = false;