From 5e9eb86c60666c24d4a5ee0dc5705b060d83272b Mon Sep 17 00:00:00 2001 From: zetxx Date: Tue, 21 Jan 2020 16:49:38 +0200 Subject: [PATCH] fix: logging --- lib/base.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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); }; }