1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-09-11 13:15:28 +03:00

Remove debug messages

This commit is contained in:
Jan Oberhauser 2020-06-12 15:51:38 +02:00
parent d1c5eb26fb
commit ed160764c9

View File

@ -16,22 +16,16 @@ class ExternalHooksClass implements IExternalHooksClass {
async init(): Promise<void> {
console.log('ExternalHooks.init');
if (this.initDidRun === true) {
return;
}
const externalHookFiles = config.get('externalHookFiles').split(':');
console.log('externalHookFiles');
console.log(externalHookFiles);
// Load all the provided hook-files
for (let hookFilePath of externalHookFiles) {
hookFilePath = hookFilePath.trim();
if (hookFilePath !== '') {
console.log(' --- load: ' + hookFilePath);
try {
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
console.log('RUN NOW: ' + hookName);
const externalHookFunctions: IExternalHooksFunctions = {
dbCollections: Db.collections,
};