diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-07-08 11:03:18 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-07-17 11:37:41 -0300 |
commit | cf30837951120bb27563054ab9aadd4ccf6fadbf (patch) | |
tree | 5f2f454e5cbf5dcb3f8fbbebdb5ac8456893bcba /src/nvim/os/channel.c | |
parent | f180f6fdeb58f2c24ac8154a70ee6d9f22d434ad (diff) | |
download | rneovim-cf30837951120bb27563054ab9aadd4ccf6fadbf.tar.gz rneovim-cf30837951120bb27563054ab9aadd4ccf6fadbf.tar.bz2 rneovim-cf30837951120bb27563054ab9aadd4ccf6fadbf.zip |
api/events/msgpack: Insert log statements to improve debugging
Also changed the default log level to INFO so developers won't end up with big
log files without asking explicitly(DLOG statements were placed in really "hot"
code)
Diffstat (limited to 'src/nvim/os/channel.c')
-rw-r--r-- | src/nvim/os/channel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/os/channel.c b/src/nvim/os/channel.c index c12779e794..11a58f246a 100644 --- a/src/nvim/os/channel.c +++ b/src/nvim/os/channel.c @@ -305,6 +305,9 @@ static void parse_msgpack(RStream *rstream, void *data, bool eof) channel->rpc_call_level++; uint32_t count = rstream_available(rstream); + DLOG("Feeding the msgpack parser with %u bytes of data from RStream(%p)", + count, + rstream); // Feed the unpacker with data msgpack_unpacker_reserve_buffer(channel->unpacker, count); |