fix(electron): dev reload (#4911)

This commit is contained in:
Peng Xiao
2023-11-12 11:19:27 +08:00
committed by GitHub
parent 7525126d89
commit a8d89254ce
5 changed files with 16 additions and 11 deletions
@@ -1,4 +1,5 @@
import { shell } from 'electron';
import { app } from 'electron';
import log from 'electron-log';
export const logger = log.scope('main');
@@ -12,3 +13,7 @@ export async function revealLogFile() {
const filePath = getLogFilePath();
return await shell.openPath(filePath);
}
app.on('before-quit', () => {
log.transports.console.level = false;
});