Improve plural handling in log output

Signed-off-by: Adam Harvey <adaharve@cisco.com>
This commit is contained in:
Adam Harvey
2022-06-21 22:49:29 -04:00
parent d9f86c2d81
commit c5270e31a2
+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));