summaryrefslogtreecommitdiffstats
path: root/openstack
diff options
context:
space:
mode:
authorJoe Gordon <jogo@cloudscaling.com>2013-01-09 18:49:12 -0800
committerJoe Gordon <jogo@cloudscaling.com>2013-01-09 18:58:54 -0800
commitedf3ccaace543e3b6269fdc53beda590f97e4706 (patch)
tree60cf12182174b80284d88f288d81a58a5ef772a0 /openstack
parentb17b268a269c4989d76267db5c2d49d4c20bd51d (diff)
downloadoslo-edf3ccaace543e3b6269fdc53beda590f97e4706.tar.gz
oslo-edf3ccaace543e3b6269fdc53beda590f97e4706.tar.xz
oslo-edf3ccaace543e3b6269fdc53beda590f97e4706.zip
Log when release file lock
We log when waiting for a file lock, when getting one, so lets log when releasing one. Change-Id: I1838c424fda74c04e9c2107db08226670e8372f3
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.