Skip to content

Commit 7509a86

Browse files
committed
Use skip message for failed initialization when plugin is already disabled
1 parent ed14826 commit 7509a86

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,17 +219,18 @@ public static async Task InitializePluginsAsync()
219219
}
220220
catch (Exception e)
221221
{
222-
API.LogException(ClassName, $"Fail to Init plugin: {pair.Metadata.Name}", e);
223222
if (pair.Metadata.Disabled && pair.Metadata.HomeDisabled)
224223
{
225224
// If this plugin is already disabled, do not show error message again
226225
// Or else it will be shown every time
226+
API.LogDebug(ClassName, $"Skip init for <{pair.Metadata.Name}>");
227227
}
228228
else
229229
{
230230
pair.Metadata.Disabled = true;
231231
pair.Metadata.HomeDisabled = true;
232232
failedPlugins.Enqueue(pair);
233+
API.LogException(ClassName, $"Fail to Init plugin: {pair.Metadata.Name}", e);
233234
}
234235
}
235236
}));

0 commit comments

Comments
 (0)