Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

add logs to license server

Maidul Islamcec14efe866b
diff --git a/backend-pg/src/ee/services/license/license-service.ts b/backend-pg/src/ee/services/license/license-service.ts
index 2670763a08..d633916e0f 100644
--- a/backend-pg/src/ee/services/license/license-service.ts
+++ b/backend-pg/src/ee/services/license/license-service.ts
@@ -91,11 +91,12 @@ export const licenseServiceFactory = ({
// else it would reach catch statement
isValidLicense = true;
} catch (error) {
- logger.error(error);
+ logger.error(`init-license: encountered an error when init license [error=${error}]`);
}
};
const getPlan = async (orgId: string, projectId?: string) => {
+ logger.info(`getPlan: attempting to fetch plan for [orgId=${orgId}] [projectId=${projectId}]`);
try {
if (instanceType === InstanceType.Cloud) {
const cachedPlan = featureStore.get<TFeatureSet>(FEATURE_CACHE_KEY(orgId, projectId));
@@ -117,7 +118,7 @@ export const licenseServiceFactory = ({
return currentPlan;
}
} catch (error) {
- logger.error(error);
+ logger.error(`getPlan: encountered an error when fetching pan [orgId=${orgId}] [projectId=${projectId}] [error=${error}]`);
return onPremFeatures;
}
return onPremFeatures;