Merge "Log when release file lock"

This commit is contained in:
Jenkins 2013-01-12 10:11:42 +00:00 committed by Gerrit Code Review
commit b45840dc2c
1 changed files with 5 additions and 0 deletions

View File

@ -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.