From 4fc60686403d380c8f3d93a9dd98b9f7d6b9d6de Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 18 Jul 2021 13:51:51 +0530 Subject: Added debug logs for auto-updater. [skip ci] --- src/electron/ipc-api/autoUpdate.js | 3 ++- src/stores/AppStore.js | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/electron/ipc-api/autoUpdate.js b/src/electron/ipc-api/autoUpdate.js index 603049c4e..5305d5618 100644 --- a/src/electron/ipc-api/autoUpdate.js +++ b/src/electron/ipc-api/autoUpdate.js @@ -28,9 +28,10 @@ export default (params) => { } if (args.action === 'check') { + debug('checking for update'); autoUpdater.checkForUpdates(); } else if (args.action === 'install') { - debug('install update'); + debug('installing update'); autoUpdater.quitAndInstall(); // we need to send a quit event setTimeout(() => { diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index ac6ca6d2d..bbb5e6305 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js @@ -180,7 +180,7 @@ export default class AppStore extends Store { } }); - // Handle deep linking (franz://) + // Handle deep linking (ferdi://) ipcRenderer.on('navigateFromDeepLink', (event, data) => { debug('Navigate from deep link', data); let { @@ -389,6 +389,7 @@ export default class AppStore extends Store { @action _checkForUpdates() { if (this.isOnline) { + debug('_checkForUpdates: sending event to autoUpdate:check'); this.updateStatus = this.updateStatusTypes.CHECKING; ipcRenderer.send('autoUpdate', { action: 'check', @@ -399,6 +400,7 @@ export default class AppStore extends Store { } @action _installUpdate() { + debug('_installUpdate: sending event to autoUpdate:install'); ipcRenderer.send('autoUpdate', { action: 'install', }); -- cgit v1.2.3-70-g09d2