mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
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:
@@ -52,14 +52,14 @@ function logMigrationStart(migrationName: string): void {
|
|||||||
runningMigrations = true;
|
runningMigrations = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.debug(`Starting migration ${migrationName}`);
|
logger.info(`Starting migration ${migrationName}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
function logMigrationEnd(migrationName: string): void {
|
function logMigrationEnd(migrationName: string): void {
|
||||||
if (inTest) return;
|
if (inTest) return;
|
||||||
|
|
||||||
const logger = Container.get(Logger);
|
const logger = Container.get(Logger);
|
||||||
logger.debug(`Finished migration ${migrationName}`);
|
logger.info(`Finished migration ${migrationName}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const runDisablingForeignKeys = async (
|
const runDisablingForeignKeys = async (
|
||||||
|
|||||||
Reference in New Issue
Block a user