Logging cleanup - enriched renderer crash logs (#1344)

This commit is contained in:
Salah Benmoussati 2022-02-09 19:37:14 +01:00 committed by GitHub
parent c8bd9828d6
commit 8d0d84a1df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -573,7 +573,13 @@ export class WindowHandler {
logger.info(`window-handler: main window crashed (killed)!`); logger.info(`window-handler: main window crashed (killed)!`);
return; return;
} }
logger.info(`window-handler: main window crashed!`); logger.info(
`window-handler: main window crashed! Details: ${JSON.stringify(
details,
null,
2,
)}`,
);
const { response } = await dialog.showMessageBox({ const { response } = await dialog.showMessageBox({
type: 'error', type: 'error',
title: i18n.t('Renderer Process Crashed')(), title: i18n.t('Renderer Process Crashed')(),