mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-21 03:51:45 +08:00
fix(electron): dev reload (#4911)
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user