summaryrefslogtreecommitdiffstats
path: root/src/evalfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-11-30 18:12:19 +0000
committerBram Moolenaar <Bram@vim.org>2022-11-30 18:12:19 +0000
commit4c5678ff0c376661d4a8183a5a074a1203413b9d (patch)
tree2ddd73cae34d17f2eb4290fda1131bb63f4a0fab /src/evalfunc.c
parenta87749e3eae3f918b6678f45cf975f0cf06d3e97 (diff)
patch 9.0.0977: it is not easy to see what client-server commands are doingv9.0.0977
Problem: It is not easy to see what client-server commands are doing. Solution: Add channel log messages if ch_log() is available. Move the channel logging and make it available with the +eval feature.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r--src/evalfunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 112a2e70b8..e72f8610fe 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -1750,9 +1750,9 @@ static funcentry_T global_functions[] =
{"ch_info", 1, 1, FEARG_1, arg1_chan_or_job,
ret_dict_any, JOB_FUNC(f_ch_info)},
{"ch_log", 1, 2, FEARG_1, arg2_string_chan_or_job,
- ret_void, JOB_FUNC(f_ch_log)},
+ ret_void, f_ch_log},
{"ch_logfile", 1, 2, FEARG_1, arg2_string,
- ret_void, JOB_FUNC(f_ch_logfile)},
+ ret_void, f_ch_logfile},
{"ch_open", 1, 2, FEARG_1, arg2_string_dict,
ret_channel, JOB_FUNC(f_ch_open)},
{"ch_read", 1, 2, FEARG_1, arg2_chan_or_job_dict,