Skip to content

Commit 810f7bb

Browse files
committed
Add disable information
1 parent 7509a86 commit 810f7bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ public static async Task InitializePluginsAsync()
219219
}
220220
catch (Exception e)
221221
{
222+
API.LogException(ClassName, $"Fail to Init plugin: {pair.Metadata.Name}", e);
222223
if (pair.Metadata.Disabled && pair.Metadata.HomeDisabled)
223224
{
224225
// If this plugin is already disabled, do not show error message again
@@ -230,7 +231,7 @@ public static async Task InitializePluginsAsync()
230231
pair.Metadata.Disabled = true;
231232
pair.Metadata.HomeDisabled = true;
232233
failedPlugins.Enqueue(pair);
233-
API.LogException(ClassName, $"Fail to Init plugin: {pair.Metadata.Name}", e);
234+
API.LogDebug(ClassName, $"Disable plugin <{pair.Metadata.Name}> because init failed");
234235
}
235236
}
236237
}));

0 commit comments

Comments
 (0)