From e2aa23a3abddabb1b1e8e449e22dad5a95b3c7d1 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 23 Dec 2009 15:21:29 +0100 Subject: Print connection failure reasons. --- fot.py | 2 ++ 1 file changed, 2 insertions(+) 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...' -- cgit v1.2.3