And more logging to test

This commit is contained in:
defnotken
2025-10-12 18:47:01 -05:00
parent dae8127ac8
commit 012e80219e
3 changed files with 18 additions and 2 deletions

View File

@@ -152,6 +152,7 @@ public sealed class FileCacheManager : IHostedService
_logger.LogTrace("Creating cache entry for {path}", path);
var cacheFolder = _configService.Current.CacheFolder;
if (string.IsNullOrEmpty(cacheFolder)) return null;
_logger.LogInformation("CreateCacheEntry finished for {path}", path);
return CreateFileEntity(cacheFolder, CachePrefix, fi);
}
@@ -309,6 +310,8 @@ public sealed class FileCacheManager : IHostedService
public Dictionary<string, FileCacheEntity?> GetFileCachesByPaths(string[] paths)
{
_logger.LogInformation("GetFileCachesByPaths called for {count} paths", paths.Length);
_getCachesByPathsSemaphore.Wait();
try
@@ -365,6 +368,8 @@ public sealed class FileCacheManager : IHostedService
}
finally
{
_logger.LogInformation("GetFileCachesByPaths finished for {count} paths", paths.Length);
_getCachesByPathsSemaphore.Release();
}
}