summaryrefslogtreecommitdiffstats
path: root/openstack
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-01-12 10:11:42 +0000
committerGerrit Code Review <review@openstack.org>2013-01-12 10:11:42 +0000
commit59617ea951a7663677763dbca10b96420fcd0cb9 (patch)
tree6a350bb9a9b3a4168d2af0271b281fd12420104a /openstack
parentbde8391028d1f60373c4edde61b5ee71f952828b (diff)
parentedf3ccaace543e3b6269fdc53beda590f97e4706 (diff)
downloadoslo-59617ea951a7663677763dbca10b96420fcd0cb9.tar.gz
oslo-59617ea951a7663677763dbca10b96420fcd0cb9.tar.xz
oslo-59617ea951a7663677763dbca10b96420fcd0cb9.zip
Merge "Log when release file lock"
Diffstat (limited to 'openstack')
-rw-r--r--openstack/common/lockutils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/openstack/common/lockutils.py b/openstack/common/lockutils.py
index 40741ca..afd6d00 100644
--- a/openstack/common/lockutils.py
+++ b/openstack/common/lockutils.py
@@ -220,6 +220,11 @@ def synchronized(name, lock_file_prefix, external=False, lock_path=None):
'method': f.__name__})
retval = f(*args, **kwargs)
finally:
+ LOG.debug(_('Released file lock "%(lock)s" at %(path)s'
+ ' for method "%(method)s"...'),
+ {'lock': name,
+ 'path': lock_file_path,
+ 'method': f.__name__})
# NOTE(vish): This removes the tempdir if we needed
# to create one. This is used to cleanup
# the locks left behind by unit tests.