def connectionRecovered(self): logger.warning('TxPool connection recovered') return DeadConnectionDetector.connectionRecovered(self)
def reconnect(self): logger.warning('TxPool reconnecting...') return DeadConnectionDetector.reconnect(self)
def startReconnecting(self, f): logger.warning('TxPool database connection down: %r)', f.value) return DeadConnectionDetector.startReconnecting(self, f)
def connectionRecovered(self): print("INFO: connection recovered") return DeadConnectionDetector.connectionRecovered(self)
def reconnect(self): print("INFO: Reconnecting...") return DeadConnectionDetector.reconnect(self)
def startReconnecting(self, f): print("ERROR: database connection is down (error: {0})" .format(f.value)) return DeadConnectionDetector.startReconnecting(self, f)