chore(index): remove debug trace

This commit is contained in:
Julien Fontanet 2016-07-29 13:54:06 +02:00
parent 883f461dc7
commit 5adfe9a552

View File

@ -419,10 +419,7 @@ const setUpApi = (webServer, xo, verboseLogsOnErrors) => {
// Create the JSON-RPC server for this connection. // Create the JSON-RPC server for this connection.
const jsonRpc = new JsonRpcPeer(message => { const jsonRpc = new JsonRpcPeer(message => {
if (message.type === 'request') { if (message.type === 'request') {
return xo.callApiMethod(connection, message.method, message.params).catch(error => { return xo.callApiMethod(connection, message.method, message.params)
console.log(error.stack)
throw error
})
} }
}) })
connection.notify = bind(jsonRpc.notify, jsonRpc) connection.notify = bind(jsonRpc.notify, jsonRpc)