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> { 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,
}; };