mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-12 15:44:06 -08:00
⚡ Remove debug messages
This commit is contained in:
parent
d1c5eb26fb
commit
ed160764c9
|
@ -16,22 +16,16 @@ class ExternalHooksClass implements IExternalHooksClass {
|
||||||
|
|
||||||
|
|
||||||
async init(): Promise<void> {
|
async init(): Promise<void> {
|
||||||
console.log('ExternalHooks.init');
|
|
||||||
|
|
||||||
if (this.initDidRun === true) {
|
if (this.initDidRun === true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const externalHookFiles = config.get('externalHookFiles').split(':');
|
const externalHookFiles = config.get('externalHookFiles').split(':');
|
||||||
|
|
||||||
console.log('externalHookFiles');
|
|
||||||
console.log(externalHookFiles);
|
|
||||||
|
|
||||||
// Load all the provided hook-files
|
// Load all the provided hook-files
|
||||||
for (let hookFilePath of externalHookFiles) {
|
for (let hookFilePath of externalHookFiles) {
|
||||||
hookFilePath = hookFilePath.trim();
|
hookFilePath = hookFilePath.trim();
|
||||||
if (hookFilePath !== '') {
|
if (hookFilePath !== '') {
|
||||||
console.log(' --- load: ' + hookFilePath);
|
|
||||||
try {
|
try {
|
||||||
const hookFile = require(hookFilePath);
|
const hookFile = require(hookFilePath);
|
||||||
|
|
||||||
|
@ -57,8 +51,6 @@ class ExternalHooksClass implements IExternalHooksClass {
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(hookName: string, hookParameters?: any[]): Promise<void> { // tslint:disable-line:no-any
|
async run(hookName: string, hookParameters?: any[]): Promise<void> { // tslint:disable-line:no-any
|
||||||
console.log('RUN NOW: ' + hookName);
|
|
||||||
|
|
||||||
const externalHookFunctions: IExternalHooksFunctions = {
|
const externalHookFunctions: IExternalHooksFunctions = {
|
||||||
dbCollections: Db.collections,
|
dbCollections: Db.collections,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue