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) => { 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;