Skip to content

The open alternative to Salesforce, designed for AI.

Add logs before and after instance slow data migration (#19753)

Paul Rastoinf5e8c0526702
diff --git a/packages/twenty-server/src/engine/core-modules/upgrade/services/instance-command-runner.service.ts b/packages/twenty-server/src/engine/core-modules/upgrade/services/instance-command-runner.service.ts
index dd56ff26ce0..f6c5e926839 100644
--- a/packages/twenty-server/src/engine/core-modules/upgrade/services/instance-command-runner.service.ts
+++ b/packages/twenty-server/src/engine/core-modules/upgrade/services/instance-command-runner.service.ts
@@ -129,7 +129,9 @@ export class InstanceCommandRunnerService {
this.twentyConfigService.get('APP_VERSION') ?? 'unknown';
try {
+ this.logger.log(`${name} starting data migration...`);
await command.runDataMigration(this.dataSource);
+ this.logger.log(`${name} data migration completed`);
} catch (error) {
const workspaceIds =
await this.workspaceVersionService.getActiveOrSuspendedWorkspaceIds();