Commit f8e54a4f authored by Guido van Rossum's avatar Guido van Rossum

Log disconnections at INFO level, for symmetry with connections.

parent 9d236fac
...@@ -124,11 +124,10 @@ class ZEOStorage: ...@@ -124,11 +124,10 @@ class ZEOStorage:
# When this storage closes, we must ensure that it aborts # When this storage closes, we must ensure that it aborts
# any pending transaction. Not sure if this is the clearest way. # any pending transaction. Not sure if this is the clearest way.
if self._transaction is not None: if self._transaction is not None:
self._log("disconnected during transaction %s" % self._transaction, self._log("disconnected during transaction %s" % self._transaction)
zLOG.BLATHER)
self.tpc_abort(self._transaction.id) self.tpc_abort(self._transaction.id)
else: else:
self._log("disconnected", zLOG.BLATHER) self._log("disconnected")
def __repr__(self): def __repr__(self):
tid = self._transaction and repr(self._transaction.id) tid = self._transaction and repr(self._transaction.id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment