comparison src/message.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 68d13970fe8b
children 4f1e70a709bb
comparison
equal deleted inserted replaced
31286:33c4af586833 31287:fa309d9af73c
159 && last_msg_hist != NULL 159 && last_msg_hist != NULL
160 && last_msg_hist->msg != NULL 160 && last_msg_hist->msg != NULL
161 && STRCMP(s, last_msg_hist->msg))) 161 && STRCMP(s, last_msg_hist->msg)))
162 add_msg_hist((char_u *)s, -1, attr); 162 add_msg_hist((char_u *)s, -1, attr);
163 163
164 #ifdef FEAT_JOB_CHANNEL 164 #ifdef FEAT_EVAL
165 if (emsg_to_channel_log) 165 if (emsg_to_channel_log)
166 // Write message in the channel log. 166 // Write message in the channel log.
167 ch_log(NULL, "ERROR: %s", s); 167 ch_log(NULL, "ERROR: %s", s);
168 #endif 168 #endif
169 169
723 // Only increment did_emsg_def when :silent! wasn't used inside the 723 // Only increment did_emsg_def when :silent! wasn't used inside the
724 // :def function. 724 // :def function.
725 if (emsg_silent == emsg_silent_def) 725 if (emsg_silent == emsg_silent_def)
726 ++did_emsg_def; 726 ++did_emsg_def;
727 #endif 727 #endif
728 #ifdef FEAT_JOB_CHANNEL 728 #ifdef FEAT_EVAL
729 ch_log(NULL, "ERROR silent: %s", (char *)s); 729 ch_log(NULL, "ERROR silent: %s", (char *)s);
730 #endif 730 #endif
731 return TRUE; 731 return TRUE;
732 } 732 }
733 733