sr-npm 1.7.473 → 1.7.475
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend/data.js +1 -1
- package/backend/secretsData.js +2 -2
- package/package.json +1 -1
package/backend/data.js
CHANGED
|
@@ -374,7 +374,7 @@ async function fillSecretManagerMirror() {
|
|
|
374
374
|
});
|
|
375
375
|
console.log("x-smarttoken inserted into the SecretManagerMirror collection");
|
|
376
376
|
} catch (error) {
|
|
377
|
-
console.
|
|
377
|
+
console.warn("Error with inserting x-smarttoken into the SecretManagerMirror collection:", error);
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
|
package/backend/secretsData.js
CHANGED
|
@@ -19,8 +19,8 @@ function getSmartToken() {
|
|
|
19
19
|
.then((secret) => {
|
|
20
20
|
return secret;
|
|
21
21
|
}).catch(async (error) => {
|
|
22
|
-
console.
|
|
23
|
-
console.
|
|
22
|
+
console.warn("Error retrieving secret value: ", error)
|
|
23
|
+
console.warn("Retrying with getTokenFromCMS")
|
|
24
24
|
const secret = await getTokenFromCMS(tokenName);
|
|
25
25
|
return secret
|
|
26
26
|
})
|