Merge pull request #12204 from adamdmharvey/adamdmharvey/plural-log-output

chore(backstage-common): Improve plural handling of log output for secrets
This commit is contained in:
Fredrik Adelöw
2022-06-22 09:14:03 +02:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-common': patch
---
Improve plural handling in logging output for secrets
+3 -1
View File
@@ -53,7 +53,9 @@ const updateRedactionList = (
);
logger.info(
`${values.size} secrets found in the config which will be redacted`,
`${values.size} secret${
values.size > 1 ? 's' : ''
} found in the config which will be redacted`,
);
setRootLoggerRedactionList(Array.from(values));