We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 902178b commit 050de03Copy full SHA for 050de03
1 file changed
packages/server/shared/src/lib/logger/log-cleaner.ts
@@ -29,7 +29,9 @@ const SENSITIVE_FIELD_PATTERNS = SENSITIVE_FIELDS.map(
29
);
30
31
const isSensitiveField = (key: string): boolean => {
32
- return SENSITIVE_FIELDS.includes(key.toLowerCase());
+ return SENSITIVE_FIELDS.some(
33
+ (field) => field.toLowerCase() === key.toLowerCase(),
34
+ );
35
};
36
37
const redactSensitiveFields = (obj: any, visited = new WeakSet()): any => {
0 commit comments