diff --git a/ErsatzTV.Application/Search/Commands/RebuildSearchIndexHandler.cs b/ErsatzTV.Application/Search/Commands/RebuildSearchIndexHandler.cs index 6129680c3..94ab3428c 100644 --- a/ErsatzTV.Application/Search/Commands/RebuildSearchIndexHandler.cs +++ b/ErsatzTV.Application/Search/Commands/RebuildSearchIndexHandler.cs @@ -33,10 +33,14 @@ public class RebuildSearchIndexHandler : IRequestHandler Handle(RebuildSearchIndex request, CancellationToken cancellationToken) { + _logger.LogInformation("Initializing search index"); + bool indexFolderExists = Directory.Exists(FileSystemLayout.SearchIndexFolder); await _searchIndex.Initialize(_localFileSystem, _configElementRepository); + _logger.LogInformation("Done initializing search index"); + if (!indexFolderExists || await _configElementRepository.GetValue(ConfigElementKey.SearchIndexVersion) < _searchIndex.Version) diff --git a/ErsatzTV/Services/RunOnce/CacheCleanerService.cs b/ErsatzTV/Services/RunOnce/CacheCleanerService.cs index 9546f905f..bea1c9d6e 100644 --- a/ErsatzTV/Services/RunOnce/CacheCleanerService.cs +++ b/ErsatzTV/Services/RunOnce/CacheCleanerService.cs @@ -54,6 +54,7 @@ public class CacheCleanerService : IHostedService { _logger.LogInformation("Emptying transcode cache folder"); localFileSystem.EmptyFolder(FileSystemLayout.TranscodeFolder); + _logger.LogInformation("Done emptying transcode cache folder"); } }