From: richard Date: Mon, 13 Jan 2003 02:44:42 +0000 (+0000) Subject: open server logfile unbuffered X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c531b90daa3c69474a638bb5d92a26c8316b6726;p=roundup.git open server logfile unbuffered git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1443 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index d362850..9ed580d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -14,6 +14,7 @@ are given with the most recent entry first. 2003-??-?? 0.5.5 - fixed rdbms searching by ID (sf bug 666615) - detect corrupted index and raise semi-useful exception (sf bug 666767) +- open server logfile unbuffered 2003-01-10 0.5.4 diff --git a/roundup/scripts/roundup_server.py b/roundup/scripts/roundup_server.py index fe11842..9f3a26a 100644 --- a/roundup/scripts/roundup_server.py +++ b/roundup/scripts/roundup_server.py @@ -16,7 +16,7 @@ # """ HTTP Server that serves roundup. -$Id: roundup_server.py,v 1.16 2002-11-28 06:55:57 richard Exp $ +$Id: roundup_server.py,v 1.17 2003-01-13 02:44:42 richard Exp $ """ # python version check @@ -305,7 +305,8 @@ def run(): # redirect stdout/stderr to our logfile if logfile: - sys.stdout = sys.stderr = open(logfile, 'a') + # appending, unbuffered + sys.stdout = sys.stderr = open(logfile, 'a', 0) httpd = BaseHTTPServer.HTTPServer(address, RoundupRequestHandler) print _('Roundup server started on %(address)s')%locals()