Tag indexing logs with document type

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2022-10-10 18:02:33 +02:00
parent 0cc6914ae3
commit 8006f8a602
8 changed files with 20 additions and 9 deletions
@@ -76,7 +76,7 @@ export class StackOverflowQuestionsCollatorFactory
this.apiKey = options.apiKey;
this.maxPage = options.maxPage;
this.requestParams = options.requestParams;
this.logger = options.logger;
this.logger = options.logger.child({ documentType: this.type });
}
static fromConfig(