From 1ee84431e4904b81af44345e587876778ef4a5d3 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sun, 6 Jul 2025 18:02:17 +0200 Subject: [PATCH] Silence duplicate url/path errors when signature objects are passed in --- src/util/Signing.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/util/Signing.ts b/src/util/Signing.ts index 824733a7..651c3372 100644 --- a/src/util/Signing.ts +++ b/src/util/Signing.ts @@ -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 {