Improve logging format for hot reload events

This commit is contained in:
Thorsten Sommer 2025-07-31 15:50:26 +02:00
parent a29f885fb1
commit e8e79a635f
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -50,13 +50,13 @@ public static partial class PluginFactory
var changeType = args.ChangeType.ToString().ToLowerInvariant();
if (!await HOT_RELOAD_SEMAPHORE.WaitAsync(0))
{
LOG.LogInformation($"File changed ({changeType}): {args.FullPath}. Already processing another change.");
LOG.LogInformation($"File changed '{args.FullPath}' (event={changeType}). Already processing another change.");
return;
}
try
{
LOG.LogInformation($"File changed ({changeType}): {args.FullPath}. Reloading plugins...");
LOG.LogInformation($"File changed '{args.FullPath}' (event={changeType}). Reloading plugins...");
if (File.Exists(HOT_RELOAD_LOCK_FILE))
{
LOG.LogInformation("Hot reload lock file exists. Waiting for it to be released before proceeding with the reload.");