Merge "Log when release file lock"
This commit is contained in:
commit
b45840dc2c
|
@ -220,6 +220,11 @@ def synchronized(name, lock_file_prefix, external=False, lock_path=None):
|
||||||
'method': f.__name__})
|
'method': f.__name__})
|
||||||
retval = f(*args, **kwargs)
|
retval = f(*args, **kwargs)
|
||||||
finally:
|
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
|
# NOTE(vish): This removes the tempdir if we needed
|
||||||
# to create one. This is used to cleanup
|
# to create one. This is used to cleanup
|
||||||
# the locks left behind by unit tests.
|
# the locks left behind by unit tests.
|
||||||
|
|
Loading…
Reference in New Issue