(value: string, maxLength = 100)
| 149 | * @returns The sanitized string |
| 150 | */ |
| 151 | export function sanitizeForLogging(value: string, maxLength = 100): string { |
| 152 | if (!value) return '' |
| 153 | |
| 154 | let sanitized = value.substring(0, maxLength) |
| 155 | |
| 156 | sanitized = redactSensitiveValues(sanitized) |
| 157 | |
| 158 | return sanitized |
| 159 | } |
| 160 | |
| 161 | /** |
| 162 | * Sanitizes event data for error reporting/analytics |
no test coverage detected