mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): Make Logger a service (no-changelog) (#7494)
This commit is contained in:
committed by
GitHub
parent
db4e61ba24
commit
05586a900d
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user