diff options
Diffstat (limited to 'src/channel.c')
-rw-r--r-- | src/channel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/channel.c b/src/channel.c index f8a8194374..e971e17c09 100644 --- a/src/channel.c +++ b/src/channel.c @@ -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 |