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:
parent
a56a50ad19
commit
ab68e24805
1 changed files with 6 additions and 0 deletions
|
@ -2534,6 +2534,12 @@ export function initialize({
|
|||
type: 'POST',
|
||||
version,
|
||||
headers,
|
||||
redactUrl: () => {
|
||||
const tmp = new URL(signedUploadLocation);
|
||||
tmp.search = '';
|
||||
tmp.pathname = '';
|
||||
return `${tmp}[REDACTED]`;
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue