Commit c28c02f2 authored by Jeremy Hylton's avatar Jeremy Hylton

Add log entry when resource manager joins transaction.

parent 8a015a2d
...@@ -16,6 +16,7 @@ __metaclass__ = type ...@@ -16,6 +16,7 @@ __metaclass__ = type
from transaction.interfaces import * from transaction.interfaces import *
from threading import Lock from threading import Lock
import logging
try: try:
from sets import Set from sets import Set
...@@ -93,6 +94,7 @@ class Transaction: ...@@ -93,6 +94,7 @@ class Transaction:
assert self._manager is not None assert self._manager is not None
if self._status != Status.ACTIVE: if self._status != Status.ACTIVE:
raise IllegalStateError("join", self._status) raise IllegalStateError("join", self._status)
self._manager.logger.debug("%s join %s" % (self, resource))
self._resources.add(resource) self._resources.add(resource)
def status(self): def status(self):
......
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