diff --git a/src/Files.Uwp/ServicesImplementation/SideloadUpdateService.cs b/src/Files.Uwp/ServicesImplementation/SideloadUpdateService.cs index 5560506d7ade..dc2c3772ca81 100644 --- a/src/Files.Uwp/ServicesImplementation/SideloadUpdateService.cs +++ b/src/Files.Uwp/ServicesImplementation/SideloadUpdateService.cs @@ -47,11 +47,11 @@ public async Task DownloadUpdates() IsUpdating = true; - App.Logger.Info($"Updating: {DownloadUri.AbsoluteUri}"); + App.Logger.Info($"SIDELOAD: Updating: {DownloadUri.AbsoluteUri}"); PackageManager pm = new PackageManager(); // Use DeploymentOptions.ForceApplicationShutdown to force shutdown. await pm.UpdatePackageAsync(DownloadUri, null, DeploymentOptions.None); - App.Logger.Info($"Finished updating: {DownloadUri.AbsoluteUri}"); + App.Logger.Info($"SIDELOAD: Finished updating: {DownloadUri.AbsoluteUri}"); IsUpdating = false; IsUpdateAvailable = false; @@ -65,7 +65,7 @@ public Task DownloadMandatoryUpdates() public async Task CheckForUpdates() { var sideloadVersion = _sideloadVersion[Package.Current.Id.Name]; - App.Logger.Info($"Checking for updates: {sideloadVersion}"); + App.Logger.Info($"SIDELOAD: Checking for updates...{sideloadVersion}"); await CheckForRemoteUpdate(sideloadVersion); } @@ -87,21 +87,21 @@ private async Task CheckForRemoteUpdate(string uri) currentPackageVersion.Build, currentPackageVersion.Revision); var remoteVersion = new Version(appInstaller.Version); - App.Logger.Info($"Package Name: {currentPackageName}"); - App.Logger.Info($"Remote Package Name: {appInstaller.MainBundle.Name}"); - App.Logger.Info($"Current Version: {currentVersion}"); - App.Logger.Info($"Remote Version: {remoteVersion}"); + App.Logger.Info($"SIDELOAD: Current Package Name: {currentPackageName}"); + App.Logger.Info($"SIDELOAD: Remote Package Name: {appInstaller.MainBundle.Name}"); + App.Logger.Info($"SIDELOAD: Current Version: {currentVersion}"); + App.Logger.Info($"SIDELOAD: Remote Version: {remoteVersion}"); // Check details and version number. if (appInstaller.MainBundle.Name.Equals(currentPackageName) && remoteVersion.CompareTo(currentVersion) > 0) { - App.Logger.Info("Update available."); + App.Logger.Info("SIDELOAD: Update found."); DownloadUri = new Uri(appInstaller.MainBundle.Uri); IsUpdateAvailable = true; } else { - App.Logger.Warn("Update not available."); + App.Logger.Warn("SIDELOAD: Update not available."); IsUpdateAvailable = false; } } diff --git a/src/Files.Uwp/ServicesImplementation/UpdateService.cs b/src/Files.Uwp/ServicesImplementation/UpdateService.cs index 479cbf4bbee4..69e3150caab9 100644 --- a/src/Files.Uwp/ServicesImplementation/UpdateService.cs +++ b/src/Files.Uwp/ServicesImplementation/UpdateService.cs @@ -83,6 +83,7 @@ public async Task DownloadMandatoryUpdates() { if (await ShowDialogAsync()) { + App.Logger.Info("STORE: Downloading updates..."); OnUpdateInProgress(); await DownloadAndInstall(); OnUpdateCompleted(); @@ -92,10 +93,13 @@ public async Task DownloadMandatoryUpdates() public async Task CheckForUpdates() { + App.Logger.Info("STORE: Checking for updates..."); + await GetUpdatePackages(); if (_updatePackages is not null && _updatePackages.Count > 0) { + App.Logger.Info("STORE: Update found."); IsUpdateAvailable = true; } }