chore(index): remove debug trace
This commit is contained in:
parent
883f461dc7
commit
5adfe9a552
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user