From a42a142c2fab3c58d37652343177bb3521f9c958 Mon Sep 17 00:00:00 2001 From: Eric Peterson Date: Tue, 31 Aug 2021 15:24:04 +0200 Subject: [PATCH] Reduce log fatigue during startup. Signed-off-by: Eric Peterson --- .changeset/techdocs-search-log-fatigue.md | 6 ++++++ .../techdocs-backend/src/search/DefaultTechDocsCollator.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/techdocs-search-log-fatigue.md diff --git a/.changeset/techdocs-search-log-fatigue.md b/.changeset/techdocs-search-log-fatigue.md new file mode 100644 index 0000000000..dc81563d8c --- /dev/null +++ b/.changeset/techdocs-search-log-fatigue.md @@ -0,0 +1,6 @@ +--- +'@backstage/plugin-techdocs-backend': patch +--- + +Errors encountered while attempting to load TechDocs search indices at +collation-time are now logged at `DEBUG` instead of `WARN` level. diff --git a/plugins/techdocs-backend/src/search/DefaultTechDocsCollator.ts b/plugins/techdocs-backend/src/search/DefaultTechDocsCollator.ts index f525d7af7e..850be2823c 100644 --- a/plugins/techdocs-backend/src/search/DefaultTechDocsCollator.ts +++ b/plugins/techdocs-backend/src/search/DefaultTechDocsCollator.ts @@ -110,7 +110,7 @@ export class DefaultTechDocsCollator implements DocumentCollator { ?.target?.name || '', })); } catch (e) { - this.logger.warn( + this.logger.debug( `Failed to retrieve tech docs search index for entity ${entityInfo.namespace}/${entityInfo.kind}/${entityInfo.name}`, e, );