[Zodb-checkins] CVS: Packages/ZEO - zrpc.py:1.15
jeremy@digicool.com
jeremy@digicool.com
Wed, 9 May 2001 10:35:40 -0400 (EDT)
Update of /cvs-repository/Packages/ZEO
In directory korak:/tmp/cvs-serv12875
Modified Files:
zrpc.py
Log Message:
Provide more detailed logging when connection fails
--- Updated File zrpc.py in package Packages/ZEO --
--- zrpc.py 2001/04/01 18:41:13 1.14
+++ zrpc.py 2001/05/09 14:35:40 1.15
@@ -140,9 +140,9 @@
else:
s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(connection)
- except:
+ except Exception, err:
if debug:
- LOG(debug, DEBUG, "Failed to connect to server")
+ LOG(debug, DEBUG, "Failed to connect to server: %s" % err)
if tryonce: return 0
time.sleep(t)
t=t*2