changeset 1390:7a37f25b5399

Let the standalone server open the logfile unbuffered, thanks to Carsten Grohmann.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Mon, 21 Aug 2006 14:22:07 +0200
parents 09aa290e4a88
children bcabe48fc2f6
files MoinMoin/server/standalone.py docs/CHANGES.aschremmer
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/server/standalone.py	Mon Aug 21 13:22:05 2006 +0200
+++ b/MoinMoin/server/standalone.py	Mon Aug 21 14:22:07 2006 +0200
@@ -575,7 +575,7 @@
             MoinRequestHandler.serve_moin, config.memoryProfile)
 
     if config.logPath:
-        sys.stderr = file(config.logPath, 'at')
+        sys.stderr = file(config.logPath, 'at', 0)
     registerSignalHandlers(quit)
     httpd = makeServer(config)
 
--- a/docs/CHANGES.aschremmer	Mon Aug 21 13:22:05 2006 +0200
+++ b/docs/CHANGES.aschremmer	Mon Aug 21 14:22:07 2006 +0200
@@ -56,6 +56,8 @@
     * Fixed severe race conditions in the meta dict and the sync tags code.
     * Mute the tempnam warning in the caching module.
     * diff3 algorithm extended, a new mode should reduce the conflicts
+    * Standalone opens it logfile unbuffered from now on, thanks to
+      Carsten Grohmann
 
   Other Changes:
     * Refactored conflict resolution and XMLRPC code.