enable logging of rpc calls

This commit is contained in:
ansuz
2017-06-30 11:19:12 +02:00
parent b7cb1a8d5f
commit d2085c1269
2 changed files with 6 additions and 0 deletions

1
rpc.js
View File

@@ -944,6 +944,7 @@ RPC.create = function (config /*:typeof(ConfigType)*/, cb /*:(?Error, ?Function)
if (!Env.msgStore) { Env.msgStore = ctx.store; }
var handleMessage = function (privileged) {
if (config.logRPC) { console.log(msg[0]); }
switch (msg[0]) {
case 'COOKIE': return void Respond(void 0);
case 'RESET':