comparison src/os_win32.c @ 28435:0533e7466ef0 v8.2.4742

patch 8.2.4742: there is no way to start logging very early in startup Commit: https://github.com/vim/vim/commit/c9a9a0ac1ec3b985d38c01ddf9f0ba2f15386f34 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 12 15:09:23 2022 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Apr 2022 16:15:03 +0200
parents a077948be0f4
children f73a9bdff3a3
comparison
equal deleted inserted replaced
28434:dfef2e002d5b 28435:0533e7466ef0
4765 { 4765 {
4766 int x = 0; 4766 int x = 0;
4767 int tmode = cur_tmode; 4767 int tmode = cur_tmode;
4768 WCHAR szShellTitle[512]; 4768 WCHAR szShellTitle[512];
4769 4769
4770 #ifdef FEAT_JOB_CHANNEL
4771 ch_log(NULL, "executing shell command: %s", cmd);
4772 #endif
4770 // Change the title to reflect that we are in a subshell. 4773 // Change the title to reflect that we are in a subshell.
4771 if (GetConsoleTitleW(szShellTitle, ARRAY_LENGTH(szShellTitle) - 4) > 0) 4774 if (GetConsoleTitleW(szShellTitle, ARRAY_LENGTH(szShellTitle) - 4) > 0)
4772 { 4775 {
4773 if (cmd == NULL) 4776 if (cmd == NULL)
4774 wcscat(szShellTitle, L" :sh"); 4777 wcscat(szShellTitle, L" :sh");