Skip to content

Commit

Permalink
feat(core): Log executed migrations with info level (#7586)
Browse files Browse the repository at this point in the history
To help debugging possible issues in startup and migrations, log the
executed migrations with log level 'info', instead of 'debug'.

Github issue / Community forum post (link here to close automatically):
  • Loading branch information
tomi committed Nov 2, 2023
1 parent 921d213 commit 7dac9ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/databases/utils/migrationHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ function logMigrationStart(migrationName: string): void {
runningMigrations = true;
}

logger.debug(`Starting migration ${migrationName}`);
logger.info(`Starting migration ${migrationName}`);
}

function logMigrationEnd(migrationName: string): void {
if (inTest) return;

const logger = Container.get(Logger);
logger.debug(`Finished migration ${migrationName}`);
logger.info(`Finished migration ${migrationName}`);
}

const runDisablingForeignKeys = async (
Expand Down

0 comments on commit 7dac9ab

Please sign in to comment.