Optimize debug logs by truncating CDN URLs
Attachments are end-to-end encrypted, and these lengthy URLs don't provide any meaningful info for debugging purposes.
This commit is contained in:
@@ -2534,6 +2534,12 @@ export function initialize({
|
||||
type: 'POST',
|
||||
version,
|
||||
headers,
|
||||
redactUrl: () => {
|
||||
const tmp = new URL(signedUploadLocation);
|
||||
tmp.search = '';
|
||||
tmp.pathname = '';
|
||||
return `${tmp}[REDACTED]`;
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user