0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.2.4742: there is no way to start logging very early in startup

Problem:    There is no way to start logging very early in startup.
Solution:   Add the --log argument.  Include the date in the start message in
            the log file.  Avoid a duplicate message when forking.  Log an
            executed shell command.
This commit is contained in:
Bram Moolenaar
2022-04-12 15:09:23 +01:00
parent 60895f3e36
commit c9a9a0ac1e
8 changed files with 63 additions and 7 deletions

View File

@@ -5480,6 +5480,9 @@ mch_call_shell(
char_u *cmd,
int options) // SHELL_*, see vim.h
{
#ifdef FEAT_JOB_CHANNEL
ch_log(NULL, "executing shell command: %s", cmd);
#endif
#if defined(FEAT_GUI) && defined(FEAT_TERMINAL)
if (gui.in_use && vim_strchr(p_go, GO_TERMINAL) != NULL)
return mch_call_shell_terminal(cmd, options);