Makeshure a new line is added everytime
Signed-off-by: Martin Karkowski <m.karkowski@dozema.local>
This commit is contained in:
parent
bd09efba45
commit
4094695ade
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user