(key: string)
| 34 | }; |
| 35 | |
| 36 | const isSensitiveData = (key: string): boolean => |
| 37 | SENSITIVE_WORDS.some(word => key.toLowerCase().includes(word)); |
| 38 | |
| 39 | const redactSensitiveData = (value: unknown, isSensitive: boolean): string => |
| 40 | isSensitive && !LOG_SENSITIVE_DATA |