mirror of
https://github.com/vim/vim.git
synced 2025-11-15 23:14:06 -05: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:
@@ -178,7 +178,10 @@ ch_logfile(char_u *fname, char_u *opt)
|
||||
|
||||
if (log_fd != NULL)
|
||||
{
|
||||
fprintf(log_fd, "==== start log session ====\n");
|
||||
fprintf(log_fd, "==== start log session %s ====\n",
|
||||
get_ctime(time(NULL), FALSE));
|
||||
// flush now, if fork/exec follows it could be written twice
|
||||
fflush(log_fd);
|
||||
#ifdef FEAT_RELTIME
|
||||
profile_start(&log_start);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user