refactor: Remove unnecessary console.log in nodes (no-changelog) (#11915)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-11-27 15:53:07 +01:00
committed by GitHub
parent 683ee42d3b
commit ddda0bde0b
7 changed files with 15 additions and 21 deletions

View File

@@ -129,7 +129,7 @@ export class Ldap implements INodeType {
await client.bind(credentials.bindDN as string, credentials.bindPassword as string);
} catch (error) {
await client.unbind();
console.log(error);
this.logger.error(error);
return [];
}
@@ -138,7 +138,7 @@ export class Ldap implements INodeType {
try {
results = await client.search(baseDN, { sizeLimit: 200, paged: false }); // should this size limit be set in credentials?
} catch (error) {
console.log(error);
this.logger.error(error);
return [];
} finally {
await client.unbind();
@@ -158,7 +158,7 @@ export class Ldap implements INodeType {
await client.bind(credentials.bindDN as string, credentials.bindPassword as string);
} catch (error) {
await client.unbind();
console.log(error);
this.logger.error(error);
return [];
}
@@ -168,7 +168,7 @@ export class Ldap implements INodeType {
try {
results = await client.search(baseDN, { sizeLimit: 10, paged: false }); // should this size limit be set in credentials?
} catch (error) {
console.log(error);
this.logger.error(error);
return [];
} finally {
await client.unbind();
@@ -202,7 +202,7 @@ export class Ldap implements INodeType {
await client.bind(credentials.bindDN as string, credentials.bindPassword as string);
} catch (error) {
await client.unbind();
console.log(error);
this.logger.error(error);
return [];
}
@@ -211,7 +211,7 @@ export class Ldap implements INodeType {
try {
results = await client.search(baseDN, { sizeLimit: 1, paged: false });
} catch (error) {
console.log(error);
this.logger.error(error);
return [];
} finally {
await client.unbind();