Log debug error when failing to decode

This commit is contained in:
Salman Chishti 2025-03-12 08:14:01 -07:00
parent 3ac34ffcb7
commit abd9054c61

View File

@ -77,8 +77,12 @@ function maskSigWithRegex(url: string): string {
setSecret(value) setSecret(value)
try { try {
setSecret(decodeURIComponent(value)) setSecret(decodeURIComponent(value))
} catch { } catch (error) {
// Ignore decoding errors debug(
`Failed to decode URL parameter: ${
error instanceof Error ? error.message : String(error)
}`
)
} }
return `${prefix}${paramName}=***` return `${prefix}${paramName}=***`
} }