diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-01-12 10:11:42 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-01-12 10:11:42 +0000 |
| commit | 59617ea951a7663677763dbca10b96420fcd0cb9 (patch) | |
| tree | 6a350bb9a9b3a4168d2af0271b281fd12420104a /openstack | |
| parent | bde8391028d1f60373c4edde61b5ee71f952828b (diff) | |
| parent | edf3ccaace543e3b6269fdc53beda590f97e4706 (diff) | |
| download | oslo-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.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. |
