diff roundup/scripts/roundup_server.py @ 2200:25b95aa44d60

socket timeout error logging can fail
author Richard Jones <richard@users.sourceforge.net>
date Fri, 09 Apr 2004 01:31:16 +0000
parents f7f6b6981a13
children ca2664e095be
line wrap: on
line diff
--- a/roundup/scripts/roundup_server.py	Thu Apr 08 00:43:23 2004 +0000
+++ b/roundup/scripts/roundup_server.py	Fri Apr 09 01:31:16 2004 +0000
@@ -17,7 +17,7 @@
 
 """Command-line script that runs a server over roundup.cgi.client.
 
-$Id: roundup_server.py,v 1.44 2004-04-07 01:12:26 richard Exp $
+$Id: roundup_server.py,v 1.45 2004-04-09 01:31:16 richard Exp $
 """
 __docformat__ = 'restructuredtext'
 
@@ -99,10 +99,7 @@
         except:
             exc, val, tb = sys.exc_info()
             if hasattr(socket, 'timeout') and isinstance(val, socket.timeout):
-                # we can't send socket timeout errors back to the client, duh
-                s = StringIO.StringIO()
-                traceback.print_exc(None, s)
-                self.log_message(str(s.getvalue()))
+                self.log_error('timeout')
             else:
                 # it'd be nice to be able to detect if these are going to have
                 # any effect...

Roundup Issue Tracker: http://roundup-tracker.org/