More logs

This commit is contained in:
Chocobozzz 2024-01-09 10:44:05 +01:00
parent 477fd984cf
commit bf63503e23
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 1 deletions

View File

@ -59,11 +59,13 @@ export class IndexationScheduler extends AbstractScheduler {
const { indexHosts, removedHosts } = await buildInstanceHosts() const { indexHosts, removedHosts } = await buildInstanceHosts()
this.indexedHosts = indexHosts this.indexedHosts = indexHosts
logger.info({ removedHosts }, `Will remove ${removedHosts.length} hosts that do not exist anymore`)
for (const o of this.indexers) { for (const o of this.indexers) {
await o.removeFromHosts(removedHosts) 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 => { await Bluebird.map(indexHosts, async host => {
try { try {