Improve plural handling in log output
Signed-off-by: Adam Harvey <adaharve@cisco.com>
This commit is contained in:
@@ -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