Skip to content

Commit

Permalink
chore: add logging around downloading and dismissing updates (#4867)
Browse files Browse the repository at this point in the history
Add logging around downloading and dismissing updates
  • Loading branch information
lerouxb authored Sep 19, 2023
1 parent 8653ffb commit 5a19e8f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/compass/src/main/auto-update-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,12 @@ const STATE_UPDATE: Partial<
updateManager,
updateInfo
) {
log.info(
mongoLogId(1_001_000_246),
'AutoUpdateManager',
'Downloading update',
{ releaseVersion: updateInfo.to }
);
track('Autoupdate Accepted', { update_version: updateInfo.to });

this.maybeInterrupt();
Expand Down Expand Up @@ -310,6 +316,12 @@ const STATE_UPDATE: Partial<
void dl.download(BrowserWindow.getAllWindows()[0], url);
},
[AutoUpdateManagerState.UpdateDismissed]: (_updateManager, updateInfo) => {
log.info(
mongoLogId(1_001_000_245),
'AutoUpdateManager',
'Update dismissed',
{ releaseVersion: updateInfo.to }
);
track('Autoupdate Dismissed', { update_version: updateInfo.to });
},
[AutoUpdateManagerState.Disabled]: disableAutoUpdates,
Expand Down

0 comments on commit 5a19e8f

Please sign in to comment.