diff options
| author | Joe Gordon <jogo@cloudscaling.com> | 2013-01-09 18:49:12 -0800 |
|---|---|---|
| committer | Joe Gordon <jogo@cloudscaling.com> | 2013-01-09 18:58:54 -0800 |
| commit | edf3ccaace543e3b6269fdc53beda590f97e4706 (patch) | |
| tree | 60cf12182174b80284d88f288d81a58a5ef772a0 /openstack | |
| parent | b17b268a269c4989d76267db5c2d49d4c20bd51d (diff) | |
| download | oslo-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.py | 5 |
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. |
