changeset 2049:94af8c2afeb0

make logfile damage happen less often
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 09 Jun 2007 17:34:13 +0200
parents 8ac1efc21728
children 05e4ecc7d8cb
files MoinMoin/logfile/__init__.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/logfile/__init__.py	Thu Jun 07 00:08:20 2007 +0200
+++ b/MoinMoin/logfile/__init__.py	Sat Jun 09 17:34:13 2007 +0200
@@ -455,4 +455,5 @@
             if line[-1] != '\n':
                 line += '\n'
             self._output.write(line)
-
+            self._output.close() # does this maybe help against the sporadic fedora wikis 160 \0 bytes in the edit-log?
+            del self._output # re-open the output file automagically