Mercurial > p > roundup > code
changeset 1367:b0d342a3548f
open server logfile unbuffered
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 13 Jan 2003 02:44:42 +0000 |
| parents | 4884fb0860f9 |
| children | 8edc52f5ceae |
| files | CHANGES.txt roundup/scripts/roundup_server.py |
| diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Sun Jan 12 23:53:20 2003 +0000 +++ b/CHANGES.txt Mon Jan 13 02:44:42 2003 +0000 @@ -14,6 +14,7 @@ 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
--- a/roundup/scripts/roundup_server.py Sun Jan 12 23:53:20 2003 +0000 +++ b/roundup/scripts/roundup_server.py Mon Jan 13 02:44:42 2003 +0000 @@ -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 @@ # 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()
