diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2009-12-23 15:21:29 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2009-12-23 15:21:29 +0100 |
commit | e2aa23a3abddabb1b1e8e449e22dad5a95b3c7d1 (patch) | |
tree | cb7ff4c072f21375c5236038efc7eb2b6b74b62e | |
parent | 62caf6ac52b6adcec29fc33f5371aa9cf250e722 (diff) |
Print connection failure reasons.
-rwxr-xr-x | fot.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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...' |