diff --git a/apps/desktop/src-electron/app.ts b/apps/desktop/src-electron/app.ts index 21a69fe21f8..cc772efd0b3 100644 --- a/apps/desktop/src-electron/app.ts +++ b/apps/desktop/src-electron/app.ts @@ -51,8 +51,6 @@ import { startServices, } from './service'; -initSentry(); - logger.initialize(); logger.transports.file.maxSize = 1024 * 1024 * 10; @@ -962,6 +960,7 @@ if (!singleInstance && !process.mas) { app.name = APP_NAME; app.on('ready', async () => { + initSentry(); const locale = await initLocale(); logger.info('locale >>>> ', locale); startServices();