diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-08-23 17:08:07 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-08-23 17:08:07 +0000 |
commit | 47ed0b9a9ef06b1c005af90f15a327ae393223a6 (patch) | |
tree | dcbe0bf9045e32f78afe905ebd43cc1bb87d00d8 | |
parent | e970dd513855fe9316216c9b729a3ffcf53f84f4 (diff) | |
parent | a25815d9a89e990c16d40b8312b6772937f2975c (diff) | |
download | tooz-47ed0b9a9ef06b1c005af90f15a327ae393223a6.tar.gz |
Merge "redis: log an error on release failure"
-rw-r--r-- | tooz/drivers/redis.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tooz/drivers/redis.py b/tooz/drivers/redis.py index 8d6be82..00a0ba7 100644 --- a/tooz/drivers/redis.py +++ b/tooz/drivers/redis.py @@ -99,7 +99,8 @@ class RedisLock(locking.Lock): with _translate_failures(): try: self._lock.release() - except exceptions.LockError: + except exceptions.LockError as e: + LOG.error("Unable to release lock '%r': %s", self, e) return False self._coord._acquired_locks.discard(self) return True |