From 7c00b9efcafa9046f8226ce4650f1b9ad67243c9 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 18 Sep 2018 23:26:03 +0200 Subject: log: RPC, input, other events --- src/nvim/generators/gen_api_dispatch.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/nvim/generators') diff --git a/src/nvim/generators/gen_api_dispatch.lua b/src/nvim/generators/gen_api_dispatch.lua index 15fcafb584..bd9650e4d1 100644 --- a/src/nvim/generators/gen_api_dispatch.lua +++ b/src/nvim/generators/gen_api_dispatch.lua @@ -190,6 +190,9 @@ for i = 1, #functions do output:write('Object handle_'..fn.name..'(uint64_t channel_id, Array args, Error *error)') output:write('\n{') + output:write('\n#if MIN_LOG_LEVEL <= DEBUG_LOG_LEVEL') + output:write('\n logmsg(DEBUG_LOG_LEVEL, "RPC: ", NULL, -1, true, "invoke '..fn.name..'");') + output:write('\n#endif') output:write('\n Object ret = NIL;') -- Declare/initialize variables that will hold converted arguments for j = 1, #fn.parameters do -- cgit