mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Improve logs of syncLicenseKeyOnPremFeatures
This commit is contained in:
@@ -87,11 +87,13 @@ export const licenseServiceFactory = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const syncLicenseKeyOnPremFeatures = async (shouldThrow: boolean = false) => {
|
const syncLicenseKeyOnPremFeatures = async (shouldThrow: boolean = false) => {
|
||||||
|
logger.info("Start syncing license key features");
|
||||||
try {
|
try {
|
||||||
const {
|
const {
|
||||||
data: { currentPlan }
|
data: { currentPlan }
|
||||||
} = await licenseServerOnPremApi.request.get<{ currentPlan: TFeatureSet }>("/api/license/v1/plan");
|
} = await licenseServerOnPremApi.request.get<{ currentPlan: TFeatureSet }>("/api/license/v1/plan");
|
||||||
onPremFeatures = currentPlan;
|
onPremFeatures = currentPlan;
|
||||||
|
logger.info("Successfully synchronized license key features");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(error, "Failed to synchronize license key features");
|
logger.error(error, "Failed to synchronize license key features");
|
||||||
if (shouldThrow) throw error;
|
if (shouldThrow) throw error;
|
||||||
|
|||||||
Reference in New Issue
Block a user