Log the exception before rolling back.
This commit is contained in:
parent
5d40622b76
commit
5b4cc5bf9c
1 changed files with 1 additions and 0 deletions
|
@ -87,6 +87,7 @@ def transaction(method):
|
||||||
try:
|
try:
|
||||||
result = method(self, *args, **kwargs)
|
result = method(self, *args, **kwargs)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
photodb.log.debug(e)
|
||||||
photodb.rollback(savepoint=savepoint_id)
|
photodb.rollback(savepoint=savepoint_id)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue