aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/msgpack_rpc/channel.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-10-22 10:45:54 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-10-22 11:26:43 -0300
commitb31a74ad11c8943b795d132c7d3e3c961d048118 (patch)
tree059e5ccf4d4173cc8bc335cd553941ed23e43147 /src/nvim/msgpack_rpc/channel.c
parent42334463447e884b9a1198be599d734fbe2d1eb7 (diff)
downloadrneovim-b31a74ad11c8943b795d132c7d3e3c961d048118.tar.gz
rneovim-b31a74ad11c8943b795d132c7d3e3c961d048118.tar.bz2
rneovim-b31a74ad11c8943b795d132c7d3e3c961d048118.zip
debug: Improve debugging of msgpack-rpc requests
- Add the api_stringify function to display API objects - Use api_stringify to display request arguments and return values in DLOG statements.
Diffstat (limited to 'src/nvim/msgpack_rpc/channel.c')
-rw-r--r--src/nvim/msgpack_rpc/channel.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c
index a1ab12f7c3..94605c37e9 100644
--- a/src/nvim/msgpack_rpc/channel.c
+++ b/src/nvim/msgpack_rpc/channel.c
@@ -461,15 +461,10 @@ static void call_request_handler(Channel *channel,
msgpack_packer_init(&response, &out_buffer, msgpack_sbuffer_write);
if (error.set) {
- ELOG("Error dispatching msgpack-rpc call: %s(request: id %" PRIu64 ")",
- error.msg,
- request_id);
channel_write(channel,
serialize_response(request_id, &error, NIL, &out_buffer));
}
- DLOG("Successfully completed mspgack-rpc call(request id: %" PRIu64 ")",
- request_id);
channel_write(channel,
serialize_response(request_id, &error, result, &out_buffer));
}