Skip to content

Commit 6298d79

Browse files
Core: log plugin errors on service load
1 parent bc8e5b0 commit 6298d79

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Certify.Core/Management/CertifyManager/CertifyManager.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public async Task Init()
202202
}
203203
}
204204

205-
if (_pluginManager.PluginLoadResults?.Count > 0)
205+
if (_pluginManager.PluginLoadResults?.Any(r => !r.IsSuccess) == true)
206206
{
207207
AddSystemStatusItem(
208208
SystemStatusCategories.SERVICE_CORE,
@@ -211,6 +211,11 @@ public async Task Init()
211211
description: $"One or more service plugins failed to load. Some functionality may be unavailable.",
212212
hasError: true
213213
);
214+
215+
foreach (var r in _pluginManager.PluginLoadResults.Where(r => !r.IsSuccess))
216+
{
217+
_serviceLog.Error($"Plugin load error: {r.PluginName} - {r.Message}");
218+
}
214219
}
215220
else
216221
{

0 commit comments

Comments
 (0)