Skip to content

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

add more log between policy migration

adilson32accbba3840
diff --git a/backend/src/db/migrations/utils/approval-migration.ts b/backend/src/db/migrations/utils/approval-migration.ts
index 3a12365c5f..222f96b96a 100644
--- a/backend/src/db/migrations/utils/approval-migration.ts
+++ b/backend/src/db/migrations/utils/approval-migration.ts
@@ -560,7 +560,9 @@ export const runLegacyPolicyMigration = async (
for (const policyId of policyIds) {
try {
+ logger.info(`${logPrefix}: locking policy [policyId=${policyId}]`);
counts[await knex.transaction((tx) => migratePolicy(tx, policyId))] += 1;
+ logger.info(`${logPrefix}: policy migrated [policyId=${policyId}]`);
} catch (error) {
if ((error as { code?: string })?.code === PG_LOCK_NOT_AVAILABLE) {
counts.locked += 1;