And more logging to test
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user