diff --git a/server/lib/elastic-search-channels.ts b/server/lib/elastic-search-channels.ts index d04b649..c94ce6d 100644 --- a/server/lib/elastic-search-channels.ts +++ b/server/lib/elastic-search-channels.ts @@ -20,6 +20,8 @@ async function indexChannels (channels: IndexableChannel[], replace = false) { } function refreshChannelsIndex () { + logger.info('Refreshing channels index.') + return elasticSearch.indices.refresh({ index: CONFIG.ELASTIC_SEARCH.INDEXES.CHANNELS }) } diff --git a/server/lib/elastic-search-videos.ts b/server/lib/elastic-search-videos.ts index 37ec2e2..7c6d73e 100644 --- a/server/lib/elastic-search-videos.ts +++ b/server/lib/elastic-search-videos.ts @@ -21,6 +21,8 @@ async function indexVideos (videos: IndexableVideo[], replace = false) { } function refreshVideosIndex () { + logger.info('Refreshing videos index.') + return elasticSearch.indices.refresh({ index: CONFIG.ELASTIC_SEARCH.INDEXES.VIDEOS }) } diff --git a/server/lib/schedulers/videos-indexer.ts b/server/lib/schedulers/videos-indexer.ts index e1fc169..d5b603a 100644 --- a/server/lib/schedulers/videos-indexer.ts +++ b/server/lib/schedulers/videos-indexer.ts @@ -87,6 +87,8 @@ export class VideosIndexer extends AbstractScheduler { await refreshChannelsIndex() await refreshVideosIndex() + + logger.info('Videos indexer ended.') } private async indexHost (host: string) {