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

@@ -150,7 +150,7 @@ public sealed class CacheMonitor : DisposableMediatorSubscriberBase
private void LightlessWatcher_FileChanged(object sender, FileSystemEventArgs e)
{
Logger.LogTrace("Lightless FSW: FileChanged: {change} => {path}", e.ChangeType, e.FullPath);
Logger.LogInformation("Lightless FSW: FileChanged: {change} => {path}", e.ChangeType, e.FullPath);
if (!AllowedFileExtensions.Any(ext => e.FullPath.EndsWith(ext, StringComparison.OrdinalIgnoreCase))) return;
@@ -350,6 +350,7 @@ public sealed class CacheMonitor : DisposableMediatorSubscriberBase
public void InvokeScan()
{
Logger.LogInformation("InvokeScan called");
TotalFiles = 0;
_currentFileProgress = 0;
_scanCancellationTokenSource = _scanCancellationTokenSource?.CancelRecreate() ?? new CancellationTokenSource();
@@ -388,6 +389,7 @@ public sealed class CacheMonitor : DisposableMediatorSubscriberBase
TotalFiles = 0;
_currentFileProgress = 0;
}, token);
Logger.LogInformation("InvokeScan finished");
}
public void RecalculateFileCacheSize(CancellationToken token)