summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2009-12-23 15:21:29 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2009-12-23 15:21:29 +0100
commite2aa23a3abddabb1b1e8e449e22dad5a95b3c7d1 (patch)
treecb7ff4c072f21375c5236038efc7eb2b6b74b62e
parent62caf6ac52b6adcec29fc33f5371aa9cf250e722 (diff)
Print connection failure reasons.
-rwxr-xr-xfot.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fot.py b/fot.py
index 663069d..ae6d564 100755
--- a/fot.py
+++ b/fot.py
@@ -97,9 +97,11 @@ class BotFactory(protocol.ReconnectingClientFactory):
return protocol.ReconnectingClientFactory.buildProtocol(self, addr)
def clientConnectionFailed(self, connector, reason):
+ print 'Connection failed: ', reason
protocol.ReconnectingClientFactory.clientConnectionFailed(self, connector, reason)
def clientConnectionLost(self, connector, reason):
+ print 'Connection lost: ', reason
protocol.ReconnectingClientFactory.clientConnectionLost(self, connector, reason)
print 'Starting per-network instances...'