summaryrefslogtreecommitdiffstats
path: root/src/time.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/time.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/time.c')
-rw-r--r--src/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/time.c b/src/time.c
index a7daaf176e..891a9f49ed 100644
--- a/src/time.c
+++ b/src/time.c
@@ -491,7 +491,7 @@ timer_callback(timer_T *timer)
typval_T rettv;
typval_T argv[2];
-#ifdef FEAT_JOB_CHANNEL
+#ifdef FEAT_EVAL
if (ch_log_active())
{
callback_T *cb = &timer->tr_callback;
@@ -509,7 +509,7 @@ timer_callback(timer_T *timer)
call_callback(&timer->tr_callback, -1, &rettv, 1, argv);
clear_tv(&rettv);
-#ifdef FEAT_JOB_CHANNEL
+#ifdef FEAT_EVAL
ch_log(NULL, "timer callback finished");
#endif
}