[Uludag-commits] r10052 - trunk/pisi/pisi
svn-uludag at uludag.org.tr
svn-uludag at uludag.org.tr
1 Kas 2006 Çar 15:18:48 EET
Author: gurer
Date: Wed Nov 1 15:18:48 2006
New Revision: 10052
Modified:
trunk/pisi/pisi/comariface.py
Log:
debug şeysi
Modified: trunk/pisi/pisi/comariface.py
=================================================================
--- trunk/pisi/pisi/comariface.py (original)
+++ trunk/pisi/pisi/comariface.py Wed Nov 1 15:18:48 2006
@@ -43,16 +43,18 @@
import socket, time
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
timeout = 5
+ sockname = "/var/run/comar.socket"
+ if ctx.comar_sockname:
+ sockname = ctx.comar_sockname
while timeout > 0:
try:
- if ctx.comar_sockname:
- sock.connect(ctx.comar_sockname)
- else:
- sock.connect("/var/run/comar.socket")
+ sock.connect(sockname)
return True
except KeyboardInterrupt:
raise
except Exception, e: #FIXME: what exception could we catch here, replace with that.
+ # DEBUG: remove before release
+ ctx.ui.info("COMARDEBUG: trying to connect '%s', but got %s: %s" % (sockname, e.__class__, e))
timeout -= 0.2
time.sleep(0.2)
return False
Uludag-commits mesaj listesiyle ilgili
daha fazla bilgi