From 810f7bb4a79e76f6c8a950240113500199948702 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Tue, 13 May 2025 09:58:24 +0800 Subject: [PATCH] Add disable information --- Flow.Launcher.Core/Plugin/PluginManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher.Core/Plugin/PluginManager.cs b/Flow.Launcher.Core/Plugin/PluginManager.cs index c9d13b61d..690fda011 100644 --- a/Flow.Launcher.Core/Plugin/PluginManager.cs +++ b/Flow.Launcher.Core/Plugin/PluginManager.cs @@ -219,6 +219,7 @@ namespace Flow.Launcher.Core.Plugin } catch (Exception e) { + API.LogException(ClassName, $"Fail to Init plugin: {pair.Metadata.Name}", e); if (pair.Metadata.Disabled && pair.Metadata.HomeDisabled) { // If this plugin is already disabled, do not show error message again @@ -230,7 +231,7 @@ namespace Flow.Launcher.Core.Plugin pair.Metadata.Disabled = true; pair.Metadata.HomeDisabled = true; failedPlugins.Enqueue(pair); - API.LogException(ClassName, $"Fail to Init plugin: {pair.Metadata.Name}", e); + API.LogDebug(ClassName, $"Disable plugin <{pair.Metadata.Name}> because init failed"); } } }));