Skip to content

Commit 7368291

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 531b2e8 commit 7368291

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Fixed:
1717
- use supplied content-type on file uploads before trying filename)
1818
- fixed roundup-reminder script to use default schema (thanks Klamer Schutte)
1919
- fixed edit action / parsePropsFromForm to handle index-page edits better
20+
- safer logging from HTTP server (sf bug 896917)
2021

2122

2223
2003-12-17 0.6.4

roundup/scripts/roundup_server.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#
1717
""" HTTP Server that serves roundup.
1818
19-
$Id: roundup_server.py,v 1.26.2.4 2003-12-04 22:53:54 richard Exp $
19+
$Id: roundup_server.py,v 1.26.2.5 2004-02-15 22:22:20 richard Exp $
2020
"""
2121

2222
# python version check
@@ -215,6 +215,16 @@ def address_string(self):
215215
host, port = self.client_address
216216
return socket.getfqdn(host)
217217

218+
def log_message(self, format, *args):
219+
''' Try to *safely* log to stderr.
220+
'''
221+
try:
222+
BaseHTTPServer.BaseHTTPRequestHandler.log_message(self,
223+
format, *args)
224+
except IOError:
225+
# stderr is no longer viable
226+
pass
227+
218228
try:
219229
import win32serviceutil
220230
except:

0 commit comments

Comments
 (0)