Silence duplicate url/path errors when signature objects are passed in

This commit is contained in:
Rory& 2025-07-06 18:02:17 +02:00
parent dae26ded20
commit 1ee84431e4

View File

@ -45,10 +45,12 @@ export class NewUrlSignatureData extends NewUrlUserSignatureData {
); );
} }
if (this.path && this.url) { if (this.path && this.url) {
console.warn( if (process.env["LOG_CDN_SIGNATURES"])
"[Signing] Both path and url are provided, using path for signing", console.warn(
new Error().stack, "[Signing] Both path and url are provided, using path for signing",
); this,
new Error().stack,
);
} }
if (this.url) { if (this.url) {
try { try {