diff --git a/lib/base.js b/lib/base.js index 18a2cf0..dc0b2c8 100644 --- a/lib/base.js +++ b/lib/base.js @@ -55,12 +55,7 @@ class Brid { this.apiMethods[channel][method] = async(ctx, ...args) => { let [message, meta] = args; this.log('trace', {in: 'base.registerMethod', description: `exec method: ${channel}.${method}`, message, meta: getSerializableMeta(meta)}); - try { - return fn.call(ctx, ...args); - } catch (e) { - this.log('error', {in: 'base.registerMethod', description: `exec method: ${channel}.${method}`, meta: getSerializableMeta(meta), error: e}); - throw e; - } + return fn.call(ctx, ...args); }; }