changeset 1838:e1d4cc010dec

Reduced log file buffer to 4 kB.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Tue, 27 Feb 2007 12:34:30 +0100
parents ddfd8d5fa282
children 28d6a093016c
files MoinMoin/logfile/__init__.py MoinMoin/logfile/editlog.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/logfile/__init__.py	Tue Feb 27 11:22:12 2007 +0100
+++ b/MoinMoin/logfile/__init__.py	Tue Feb 27 12:34:30 2007 +0100
@@ -78,7 +78,7 @@
     Overwrite .parser() and .add() to customize this class to special log files
     """
 
-    def __init__(self, filename, buffer_size=65536):
+    def __init__(self, filename, buffer_size=4096):
         """
         @param filename: name of the log file
         @param buffer_size: approx. size of one buffer in bytes
--- a/MoinMoin/logfile/editlog.py	Tue Feb 27 11:22:12 2007 +0100
+++ b/MoinMoin/logfile/editlog.py	Tue Feb 27 12:34:30 2007 +0100
@@ -126,7 +126,7 @@
 
 class EditLog(LogFile):
 
-    def __init__(self, request, filename=None, buffer_size=65536, **kw):
+    def __init__(self, request, filename=None, buffer_size=4096, **kw):
         if filename is None:
             rootpagename = kw.get('rootpagename', None)
             if rootpagename: