aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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")