diff --git a/server/lib/schedulers/indexation-scheduler.ts b/server/lib/schedulers/indexation-scheduler.ts index a7238e5..a050c4a 100644 --- a/server/lib/schedulers/indexation-scheduler.ts +++ b/server/lib/schedulers/indexation-scheduler.ts @@ -59,11 +59,13 @@ export class IndexationScheduler extends AbstractScheduler { const { indexHosts, removedHosts } = await buildInstanceHosts() this.indexedHosts = indexHosts + logger.info({ removedHosts }, `Will remove ${removedHosts.length} hosts that do not exist anymore`) + for (const o of this.indexers) { await o.removeFromHosts(removedHosts) } - logger.info({ indexHosts }, 'Will index %s hosts', indexHosts.length) + logger.info({ indexHosts }, `Will index ${indexHosts.length} hosts`) await Bluebird.map(indexHosts, async host => { try {