summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2021-11-15 17:51:50 +0100
committerOskar Nyberg <oskar@mullvad.net>2021-11-26 11:18:59 +0100
commitd922d35f529edb9ef458a020e424140d67eb8bdb (patch)
tree71e52a4e117a42b98ad2ebb5fe2be91337957016
parent1ed0cc515f5da09dcf04e79af2c50757484a2fe8 (diff)
downloadmullvadvpn-d922d35f529edb9ef458a020e424140d67eb8bdb.tar.xz
mullvadvpn-d922d35f529edb9ef458a020e424140d67eb8bdb.zip
Add logging when quitting and crashing
-rw-r--r--gui/src/main/index.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 8313fa73d9..2924408ee6 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -291,6 +291,17 @@ class ApplicationMain {
this.guiSettings.load();
+ app.on('render-process-gone', (_event, _webContents, details) => {
+ log.error(
+ `Render process exited with exit code ${details.exitCode} due to ${details.reason}`,
+ );
+ });
+ app.on('child-process-gone', (_event, details) => {
+ log.error(
+ `Child process of type ${details.type} exited with exit code ${details.exitCode} due to ${details.reason}`,
+ );
+ });
+
app.on('activate', this.onActivate);
app.on('ready', this.onReady);
app.on('window-all-closed', () => app.quit());
@@ -367,6 +378,9 @@ class ApplicationMain {
event.preventDefault();
this.quitStage = AppQuitStage.initiated;
+
+ log.info('Quit initiated');
+
await this.prepareToQuit();
// terminate the app