mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
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.
This commit is contained in:
@@ -161,7 +161,7 @@ msg_attr_keep(
|
||||
&& STRCMP(s, last_msg_hist->msg)))
|
||||
add_msg_hist((char_u *)s, -1, attr);
|
||||
|
||||
#ifdef FEAT_JOB_CHANNEL
|
||||
#ifdef FEAT_EVAL
|
||||
if (emsg_to_channel_log)
|
||||
// Write message in the channel log.
|
||||
ch_log(NULL, "ERROR: %s", s);
|
||||
@@ -725,7 +725,7 @@ emsg_core(char_u *s)
|
||||
if (emsg_silent == emsg_silent_def)
|
||||
++did_emsg_def;
|
||||
#endif
|
||||
#ifdef FEAT_JOB_CHANNEL
|
||||
#ifdef FEAT_EVAL
|
||||
ch_log(NULL, "ERROR silent: %s", (char *)s);
|
||||
#endif
|
||||
return TRUE;
|
||||
|
Reference in New Issue
Block a user