Mercurial > vim
comparison src/time.c @ 31287:fa309d9af73c v9.0.0977
patch 9.0.0977: it is not easy to see what client-server commands are doing
Commit: https://github.com/vim/vim/commit/4c5678ff0c376661d4a8183a5a074a1203413b9d
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Nov 30 18:12:19 2022 +0000
patch 9.0.0977: it is not easy to see what client-server commands are doing
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 30 Nov 2022 19:15:10 +0100 |
parents | ec7cb7e68968 |
children | b6bef244837e |
comparison
equal
deleted
inserted
replaced
31286:33c4af586833 | 31287:fa309d9af73c |
---|---|
489 timer_callback(timer_T *timer) | 489 timer_callback(timer_T *timer) |
490 { | 490 { |
491 typval_T rettv; | 491 typval_T rettv; |
492 typval_T argv[2]; | 492 typval_T argv[2]; |
493 | 493 |
494 #ifdef FEAT_JOB_CHANNEL | 494 #ifdef FEAT_EVAL |
495 if (ch_log_active()) | 495 if (ch_log_active()) |
496 { | 496 { |
497 callback_T *cb = &timer->tr_callback; | 497 callback_T *cb = &timer->tr_callback; |
498 | 498 |
499 ch_log(NULL, "invoking timer callback %s", | 499 ch_log(NULL, "invoking timer callback %s", |
507 | 507 |
508 rettv.v_type = VAR_UNKNOWN; | 508 rettv.v_type = VAR_UNKNOWN; |
509 call_callback(&timer->tr_callback, -1, &rettv, 1, argv); | 509 call_callback(&timer->tr_callback, -1, &rettv, 1, argv); |
510 clear_tv(&rettv); | 510 clear_tv(&rettv); |
511 | 511 |
512 #ifdef FEAT_JOB_CHANNEL | 512 #ifdef FEAT_EVAL |
513 ch_log(NULL, "timer callback finished"); | 513 ch_log(NULL, "timer callback finished"); |
514 #endif | 514 #endif |
515 } | 515 } |
516 | 516 |
517 /* | 517 /* |