diff src/channel.c @ 18191:0f8a34c996eb v8.1.2090

patch 8.1.2090: not clear why channel log file ends Commit: https://github.com/vim/vim/commit/2e47cab715669bd0c89762217cbf77bd70cd82ac Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 27 23:12:45 2019 +0200 patch 8.1.2090: not clear why channel log file ends Problem: Not clear why channel log file ends. Solution: Add a "closing" line.
author Bram Moolenaar <Bram@vim.org>
date Fri, 27 Sep 2019 23:15:03 +0200
parents 4ac8161e92e0
children c469e1930456
line wrap: on
line diff
--- a/src/channel.c
+++ b/src/channel.c
@@ -141,7 +141,13 @@ ch_logfile(char_u *fname, char_u *opt)
     FILE   *file = NULL;
 
     if (log_fd != NULL)
+    {
+	if (*fname != NUL)
+	    ch_log(NULL, "closing, opening %s", fname);
+	else
+	    ch_log(NULL, "closing");
 	fclose(log_fd);
+    }
 
     if (*fname != NUL)
     {