]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
print out hostport of failed connection target
authorTraun Leyden <tleyden@branchcut.com>
Sat, 9 Feb 2008 16:45:02 +0000 (16:45 +0000)
committerTraun Leyden <tleyden@branchcut.com>
Sat, 9 Feb 2008 16:45:02 +0000 (16:45 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7569 d0543943-73ff-0310-b7d9-9358b9ac24b2

scripts/socket/freepy/fseventlistener.py

index f71ad20e95469f5a0a881ec21d4a2babc06809c8..b7fe80d8f4956481ba2064e33c5d3648545d5939 100644 (file)
@@ -216,8 +216,8 @@ class FreeswitchEventListenerFactory(ClientFactory):
 
         if self.num_attempts < 10000:
             self.num_attempts += 1            
-            print "Connection refused, retrying attempt #%s in 5 seconds" % \
-                  (self.num_attempts)
+            print "Connection to %s:%s refused, retrying attempt #%s in " \
+                  "5 seconds" % (self.host, self.port, self.num_attempts)
             return reactor.callLater(5, self.connect)
         else:
             print "clientConnectionFailed! conn=%s, reason=%s" % (connector,