mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-20 22:12:56 +00:00
Improve logging format for hot reload events
This commit is contained in:
parent
a29f885fb1
commit
e8e79a635f
@ -50,13 +50,13 @@ public static partial class PluginFactory
|
|||||||
var changeType = args.ChangeType.ToString().ToLowerInvariant();
|
var changeType = args.ChangeType.ToString().ToLowerInvariant();
|
||||||
if (!await HOT_RELOAD_SEMAPHORE.WaitAsync(0))
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
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))
|
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.");
|
LOG.LogInformation("Hot reload lock file exists. Waiting for it to be released before proceeding with the reload.");
|
||||||
|
Loading…
Reference in New Issue
Block a user