mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Make Logger a service (no-changelog) (#7494)
This commit is contained in:
committed by
GitHub
parent
db4e61ba24
commit
05586a900d
@@ -1,8 +1,8 @@
|
||||
import { Command, flags } from '@oclif/command';
|
||||
import type { DataSourceOptions as ConnectionOptions } from 'typeorm';
|
||||
import { DataSource as Connection } from 'typeorm';
|
||||
import { LoggerProxy } from 'n8n-workflow';
|
||||
import { getLogger } from '@/Logger';
|
||||
import { Container } from 'typedi';
|
||||
import { Logger } from '@/Logger';
|
||||
import { getConnectionOptions } from '@/Db';
|
||||
import type { Migration } from '@db/types';
|
||||
import { wrapMigration } from '@db/utils/migrationHelpers';
|
||||
@@ -17,7 +17,7 @@ export class DbRevertMigrationCommand extends Command {
|
||||
help: flags.help({ char: 'h' }),
|
||||
};
|
||||
|
||||
protected logger = LoggerProxy.init(getLogger());
|
||||
protected logger = Container.get(Logger);
|
||||
|
||||
private connection: Connection;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user