Improve logs of syncLicenseKeyOnPremFeatures

This commit is contained in:
carlosmonastyrski
2025-04-04 12:53:28 -03:00
parent e87a1bd402
commit 6c636415bb

View File

@@ -87,11 +87,13 @@ export const licenseServiceFactory = ({
);
const syncLicenseKeyOnPremFeatures = async (shouldThrow: boolean = false) => {
logger.info("Start syncing license key features");
try {
const {
data: { currentPlan }
} = await licenseServerOnPremApi.request.get<{ currentPlan: TFeatureSet }>("/api/license/v1/plan");
onPremFeatures = currentPlan;
logger.info("Successfully synchronized license key features");
} catch (error) {
logger.error(error, "Failed to synchronize license key features");
if (shouldThrow) throw error;