From 36fd91f009f62d4739446846c508ccc3fd7fbdeb Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 24 Feb 2020 17:21:35 +0000 Subject: [PATCH] we need to manually flush log files --- modules/channel_log.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/channel_log.py b/modules/channel_log.py index 17ae5df4..9c1fea37 100644 --- a/modules/channel_log.py +++ b/modules/channel_log.py @@ -26,6 +26,7 @@ class Module(ModuleManager.BaseModule): return self.data_directory("%s/%s.log" % (server_name, sanitised_name)) def _write_line(self, channel, line): channel._log_file.write("%s\n" % line) + channel._log_file.flush() def _write(self, channel, filename, key, line): if not hasattr(channel, "_log_file"): channel._log_file = utils.io.open(filename, "a")