summaryrefslogtreecommitdiffhomepage
path: root/gui/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/main')
-rw-r--r--gui/src/main/index.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 10f66b3f08..a5a437e099 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -31,6 +31,7 @@ import { SYSTEM_PREFERRED_LOCALE_KEY } from '../shared/gui-settings-state';
import { IpcMainEventChannel } from '../shared/ipc-event-channel';
import {
backupLogFile,
+ cleanUpLogDirectory,
getLogsDirectory,
getMainLogFile,
getRendererLogFile,
@@ -264,6 +265,7 @@ class ApplicationMain {
}
}
+ cleanUpLogDirectory();
setupLogging(mainLogFile);
}