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:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/backend-common': patch
|
||||
---
|
||||
|
||||
Improve plural handling in logging output for secrets
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user