refactor(core): Move Logger to @n8n/backend-common (#15721)

This commit is contained in:
Iván Ovejero
2025-05-30 12:57:47 +02:00
committed by GitHub
parent f755af8d3e
commit c229e915ea
148 changed files with 228 additions and 184 deletions

View File

@@ -1,9 +1,10 @@
import { Logger } from '@n8n/backend-common';
import { GlobalConfig } from '@n8n/config';
import { Container } from '@n8n/di';
import type { ObjectLiteral } from '@n8n/typeorm';
import type { QueryRunner } from '@n8n/typeorm/query-runner/QueryRunner';
import { readFileSync, rmSync } from 'fs';
import { InstanceSettings, Logger } from 'n8n-core';
import { InstanceSettings } from 'n8n-core';
import { jsonParse, UnexpectedError } from 'n8n-workflow';
import { createSchemaBuilder } from './dsl';

View File

@@ -1,5 +1,5 @@
import type { Logger } from '@n8n/backend-common';
import type { QueryRunner, ObjectLiteral } from '@n8n/typeorm';
import type { Logger } from 'n8n-core';
import type { createSchemaBuilder } from './dsl';

View File

@@ -1,3 +1,4 @@
import { Logger } from '@n8n/backend-common';
import { GlobalConfig } from '@n8n/config';
import { Service } from '@n8n/di';
import type {
@@ -22,7 +23,7 @@ import {
import { DateUtils } from '@n8n/typeorm/util/DateUtils';
import { parse, stringify } from 'flatted';
import pick from 'lodash/pick';
import { BinaryDataService, ErrorReporter, Logger } from 'n8n-core';
import { BinaryDataService, ErrorReporter } from 'n8n-core';
import { ExecutionCancelledError, UnexpectedError } from 'n8n-workflow';
import type {
AnnotationVote,

View File

@@ -1,7 +1,8 @@
import { Logger } from '@n8n/backend-common';
import { Container } from '@n8n/di';
import type { EntitySubscriberInterface, UpdateEvent } from '@n8n/typeorm';
import { EventSubscriber } from '@n8n/typeorm';
import { ErrorReporter, Logger } from 'n8n-core';
import { ErrorReporter } from 'n8n-core';
import { UnexpectedError } from 'n8n-workflow';
import { Project, User } from '../entities';