Fix uncaught exception in logging
This commit is contained in:
parent
80c90540f6
commit
bf6d9c6cda
1 changed files with 2 additions and 0 deletions
|
@ -111,6 +111,7 @@ export async function initialize(
|
||||||
timestamp: pino.stdTimeFunctions.isoTime,
|
timestamp: pino.stdTimeFunctions.isoTime,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
ipc.removeHandler('fetch-log');
|
||||||
ipc.handle('fetch-log', async () => {
|
ipc.handle('fetch-log', async () => {
|
||||||
const mainWindow = getMainWindow();
|
const mainWindow = getMainWindow();
|
||||||
if (!mainWindow) {
|
if (!mainWindow) {
|
||||||
|
@ -137,6 +138,7 @@ export async function initialize(
|
||||||
return data;
|
return data;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
ipc.removeHandler('delete-all-logs');
|
||||||
ipc.handle('delete-all-logs', async () => {
|
ipc.handle('delete-all-logs', async () => {
|
||||||
// Restart logging when the streams will close
|
// Restart logging when the streams will close
|
||||||
shouldRestart = true;
|
shouldRestart = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue