add some startup log messages (#872)

This commit is contained in:
Jason Dove
2022-06-25 13:03:37 -05:00
committed by GitHub
parent f349646703
commit 8deae983c7
2 changed files with 5 additions and 0 deletions
@@ -33,10 +33,14 @@ public class RebuildSearchIndexHandler : IRequestHandler<RebuildSearchIndex, Uni
public async Task<Unit> 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<int>(ConfigElementKey.SearchIndexVersion) <
_searchIndex.Version)
@@ -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");
}
}