From 5adfe9a55226519702ca504ff923d539cdaa2c45 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Fri, 29 Jul 2016 13:54:06 +0200 Subject: [PATCH] chore(index): remove debug trace --- src/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index d46ca7cb4..2b415a382 100644 --- a/src/index.js +++ b/src/index.js @@ -419,10 +419,7 @@ const setUpApi = (webServer, xo, verboseLogsOnErrors) => { // Create the JSON-RPC server for this connection. const jsonRpc = new JsonRpcPeer(message => { if (message.type === 'request') { - return xo.callApiMethod(connection, message.method, message.params).catch(error => { - console.log(error.stack) - throw error - }) + return xo.callApiMethod(connection, message.method, message.params) } }) connection.notify = bind(jsonRpc.notify, jsonRpc)