Program plugin logs (#11497)

This commit is contained in:
Mykhailo Pylyp 2021-05-27 19:15:22 +03:00 committed by GitHub
parent 36fb2a434f
commit 338b7b8a29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@ using Microsoft.Plugin.Program.Logger;
using Microsoft.Plugin.Program.Programs; using Microsoft.Plugin.Program.Programs;
using Windows.ApplicationModel; using Windows.ApplicationModel;
using Wox.Infrastructure.Storage; using Wox.Infrastructure.Storage;
using Wox.Plugin.Logger;
namespace Microsoft.Plugin.Program.Storage namespace Microsoft.Plugin.Program.Storage
{ {
@ -80,6 +81,7 @@ namespace Microsoft.Plugin.Program.Storage
var support = Environment.OSVersion.Version.Major >= windows10.Major; var support = Environment.OSVersion.Version.Major >= windows10.Major;
var applications = support ? Programs.UWP.All() : Array.Empty<UWPApplication>(); var applications = support ? Programs.UWP.All() : Array.Empty<UWPApplication>();
Log.Info($"Indexed {applications.Length} packaged applications", GetType());
SetList(applications); SetList(applications);
} }

View File

@ -243,6 +243,7 @@ namespace Microsoft.Plugin.Program.Storage
public void IndexPrograms() public void IndexPrograms()
{ {
var applications = Programs.Win32Program.All(_settings); var applications = Programs.Win32Program.All(_settings);
Log.Info($"Indexed {applications.Length} win32 applications", GetType());
SetList(applications); SetList(applications);
} }