diff --git a/Wox/App.xaml.cs b/Wox/App.xaml.cs index 535352578b..913887f15a 100644 --- a/Wox/App.xaml.cs +++ b/Wox/App.xaml.cs @@ -43,8 +43,8 @@ namespace Wox { Stopwatch.Normal("|App.OnStartup|Startup cost", () => { - Log.Info("|App.Main|Begin Wox startup ----------------------------------------------------"); - Log.Info($"|App.OnStartup|{ErrorReporting.RuntimeInfo()}"); + Log.Info("|App.OnStartup|Begin Wox startup ----------------------------------------------------"); + Log.Info($"|App.OnStartup|Runtime info:{ErrorReporting.RuntimeInfo()}"); RegisterAppDomainExceptions(); RegisterDispatcherUnhandledException(); @@ -59,6 +59,7 @@ namespace Wox var window = new MainWindow(_settings, _mainVM); API = new PublicAPIInstance(_settingsVM, _mainVM); PluginManager.InitializePlugins(API); + Log.Info($"|App.OnStartup|Dependencies Info:{ErrorReporting.DependenciesInfo()}"); Current.MainWindow = window; Current.MainWindow.Title = Constant.Wox; diff --git a/Wox/Helper/ErrorReporting.cs b/Wox/Helper/ErrorReporting.cs index 8748860c4d..b160d8da77 100644 --- a/Wox/Helper/ErrorReporting.cs +++ b/Wox/Helper/ErrorReporting.cs @@ -33,8 +33,13 @@ namespace Wox.Helper var info = $"\nWox version: {Constant.Version}" + $"\nOS Version: {Environment.OSVersion.VersionString}" + $"\nIntPtr Length: {IntPtr.Size}" + - $"\nx64: {Environment.Is64BitOperatingSystem}" + - $"\nPython Path: {Constant.PythonPath}" + + $"\nx64: {Environment.Is64BitOperatingSystem}"; + return info; + } + + public static string DependenciesInfo() + { + var info = $"\nPython Path: {Constant.PythonPath}" + $"\nEverything SDK Path: {Constant.EverythingSDKPath}"; return info; } diff --git a/Wox/ReportWindow.xaml.cs b/Wox/ReportWindow.xaml.cs index fa2b0fb929..5fe84fe2f9 100644 --- a/Wox/ReportWindow.xaml.cs +++ b/Wox/ReportWindow.xaml.cs @@ -34,6 +34,7 @@ namespace Wox StringBuilder content = new StringBuilder(); content.AppendLine(ErrorReporting.RuntimeInfo()); + content.AppendLine(ErrorReporting.DependenciesInfo()); content.AppendLine($"Date: {DateTime.Now.ToString(CultureInfo.InvariantCulture)}"); content.AppendLine("Exception:"); content.AppendLine(exception.Source);