More logs
This commit is contained in:
parent
477fd984cf
commit
bf63503e23
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue