Merge pull request #14067 from backstage/search/tag-log-document-type

[Search] Tag indexing logs with documentType
This commit is contained in:
Eric Peterson
2022-10-16 16:37:10 +02:00
committed by GitHub
8 changed files with 20 additions and 9 deletions
@@ -90,7 +90,7 @@ export class DefaultTechDocsCollatorFactory implements DocumentCollatorFactory {
this.discovery = options.discovery;
this.locationTemplate =
options.locationTemplate || '/docs/:namespace/:kind/:name/:path';
this.logger = options.logger;
this.logger = options.logger.child({ documentType: this.type });
this.catalogClient =
options.catalogClient ||
new CatalogClient({ discoveryApi: options.discovery });