aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2020-02-24 17:21:35 +0000
committerGravatar jesopo2020-02-24 17:21:35 +0000
commit36fd91f009f62d4739446846c508ccc3fd7fbdeb (patch)
treedb0529118d3da80188a76a1dfbde3f8e8e94c33d
parentfor some reason, __ variables disappear from hasattr (diff)
signature
we need to manually flush log files
-rw-r--r--modules/channel_log.py1
1 files changed, 1 insertions, 0 deletions
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")