refactor(core): Make Logger a service (no-changelog) (#7494)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-10-25 16:35:22 +02:00
committed by GitHub
parent db4e61ba24
commit 05586a900d
131 changed files with 761 additions and 919 deletions

View File

@@ -10,7 +10,7 @@ import type {
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import { LoggerProxy as Logger, NodeOperationError } from 'n8n-workflow';
import { NodeOperationError } from 'n8n-workflow';
import { Attribute, Change } from 'ldapts';
import { ldapFields } from './LdapDescription';
@@ -233,7 +233,7 @@ export class Ldap implements INodeType {
const returnItems: INodeExecutionData[] = [];
if (nodeDebug) {
Logger.info(
this.logger.info(
`[${this.getNode().type} | ${this.getNode().name}] - Starting with ${
items.length
} input items`,
@@ -392,7 +392,7 @@ export class Ldap implements INodeType {
options.filter = searchFor;
if (nodeDebug) {
Logger.info(
this.logger.info(
`[${this.getNode().type} | ${this.getNode().name}] - Search Options ${JSON.stringify(
options,
null,
@@ -433,7 +433,7 @@ export class Ldap implements INodeType {
}
}
if (nodeDebug) {
Logger.info(`[${this.getNode().type} | ${this.getNode().name}] - Finished`);
this.logger.info(`[${this.getNode().type} | ${this.getNode().name}] - Finished`);
}
await client.unbind();