#NEWLINE# def clientConnectionFailed( self , connector , reason ) : #NEWLINE# #INDENT# log . msg ( ( 'Connection failed. Reason:' + str ( reason ) ) ) #NEWLINE# self . proto = None #NEWLINE# self . _do_failover ( connector ) #NEWLINE# log . msg ( ( 'Reconnecting to Riemann on %s:%s' % ( self . host , connector . port ) ) ) #NEWLINE# protocol . ReconnectingClientFactory . clientConnectionFailed ( self , connector , reason )