changeset 2201:2a5892e1f2ab maint-0.6

socket timeout error logging can fail
author Richard Jones <richard@users.sourceforge.net>
date Fri, 09 Apr 2004 01:31:16 +0000
parents 340497d2381e
children 10bb5de34eec
files roundup/scripts/roundup_server.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/scripts/roundup_server.py	Fri Apr 09 01:28:58 2004 +0000
+++ b/roundup/scripts/roundup_server.py	Fri Apr 09 01:31:16 2004 +0000
@@ -16,7 +16,7 @@
 # 
 """ HTTP Server that serves roundup.
 
-$Id: roundup_server.py,v 1.26.2.5 2004-02-15 22:22:20 richard Exp $
+$Id: roundup_server.py,v 1.26.2.6 2004-04-09 01:28:24 richard Exp $
 """
 
 # python version check
@@ -87,9 +87,7 @@
         except:
             exc, val, tb = sys.exc_info()
             if hasattr(socket, 'timeout') and exc == socket.timeout:
-                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/