add some startup log messages (#872)
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user