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)
try {
setSecret(decodeURIComponent(value))
} catch {
// Ignore decoding errors
} catch (error) {
debug(
`Failed to decode URL parameter: ${
error instanceof Error ? error.message : String(error)
}`
)
}
return `${prefix}${paramName}=***`
}