Skip to content

Commit

Permalink
feat(core): log executed migrations with info level
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'.
  • Loading branch information
tomi committed Nov 2, 2023
1 parent be49778 commit b66696f
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 b66696f

Please sign in to comment.