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