Skip to content

Commit 9de9f22

Browse files
committed
Merge pull request #12 from topaxi/stringify_params_in_trace
Stringify decoded params for debug trace.
2 parents 75022ac + 416de4b commit 9de9f22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/endpoint.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports = function (classes){
5353
},
5454
handleCall: function (decoded, conn, callback){
5555
EventEmitter.trace('<--', 'Request (id ' + decoded.id + '): ' +
56-
decoded.method + '(' + decoded.params.join(', ') + ')');
56+
decoded.method + '(' + JSON.stringify(decoded.params) + ')');
5757

5858
if (!this.functions.hasOwnProperty(decoded.method)) {
5959
callback(new Error.MethodNotFound('Unknown RPC call "' + decoded.method + '"'));
@@ -74,4 +74,4 @@ module.exports = function (classes){
7474
});
7575

7676
return Endpoint;
77-
};
77+
};

0 commit comments

Comments
 (0)