feat(core): Log executed migrations with info level (#7586)

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):
This commit is contained in:
Tomi Turtiainen 2023-11-02 14:24:04 +02:00 committed by GitHub
parent 921d213ae5
commit 7dac9ab82c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 (