Commit 54bfd4d5 authored by Jeremy Hylton's avatar Jeremy Hylton

Two logging improvements.

When a block transaction is stopped because the client disconnects,
log a message at INFO level.

Add a message at BLATHER level when a transaction acquires the commit
lock.
parent c526d348
......@@ -534,6 +534,8 @@ class ZEOStorage:
d, z = waiting[i]
if z is self:
del waiting[i]
self.log("Closed connection removed from waiting list."
" Clients waiting: %d." % len(waiting))
break
if self.transaction:
......@@ -658,6 +660,7 @@ class ZEOStorage:
"Clients waiting: %d." % len(self.storage._waiting))
return d
else:
self.log("Transaction acquired storage lock.", zLOG.BLATHER)
return self._restart()
def _restart(self, delay=None):
......
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