コード例 #1
0
ファイル: store.py プロジェクト: arskom/neurons
 def connectionRecovered(self):
     logger.warning('TxPool connection recovered')
     return DeadConnectionDetector.connectionRecovered(self)
コード例 #2
0
ファイル: store.py プロジェクト: arskom/neurons
 def reconnect(self):
     logger.warning('TxPool reconnecting...')
     return DeadConnectionDetector.reconnect(self)
コード例 #3
0
ファイル: store.py プロジェクト: arskom/neurons
 def startReconnecting(self, f):
     logger.warning('TxPool database connection down: %r)', f.value)
     return DeadConnectionDetector.startReconnecting(self, f)
コード例 #4
0
ファイル: postgresql.py プロジェクト: ThinkEE/Kameleon
 def connectionRecovered(self):
     print("INFO: connection recovered")
     return DeadConnectionDetector.connectionRecovered(self)
コード例 #5
0
ファイル: postgresql.py プロジェクト: ThinkEE/Kameleon
 def reconnect(self):
     print("INFO: Reconnecting...")
     return DeadConnectionDetector.reconnect(self)
コード例 #6
0
ファイル: postgresql.py プロジェクト: ThinkEE/Kameleon
 def startReconnecting(self, f):
     print("ERROR: database connection is down (error: {0})"
           .format(f.value))
     return DeadConnectionDetector.startReconnecting(self, f)