Silence duplicate url/path errors when signature objects are passed in
This commit is contained in:
parent
dae26ded20
commit
1ee84431e4
@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user