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) {
console.warn(
"[Signing] Both path and url are provided, using path for signing",
new Error().stack,
);
if (process.env["LOG_CDN_SIGNATURES"])
console.warn(
"[Signing] Both path and url are provided, using path for signing",
this,
new Error().stack,
);
}
if (this.url) {
try {