Log warning on plugin load cancellation due to timeout

This commit is contained in:
Thorsten Sommer 2025-06-01 20:54:47 +02:00
parent 85fcb4a6c8
commit f1d0549a4f
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -58,8 +58,11 @@ public static partial class PluginFactory
try try
{ {
if (cancellationToken.IsCancellationRequested) if (cancellationToken.IsCancellationRequested)
{
LOG.LogWarning("Was not able to load all plugins, because the operation was cancelled. It seems to be a timeout.");
break; break;
}
LOG.LogInformation($"Try to load plugin: {pluginMainFile}"); LOG.LogInformation($"Try to load plugin: {pluginMainFile}");
var fileInfo = new FileInfo(pluginMainFile); var fileInfo = new FileInfo(pluginMainFile);
string code; string code;