Emit a log statement when releasing internal lock
The log statement, with debug severity, is added to the lock function in order to ensure lock release is logged also when using lockutils.lock Change-Id: I362cc743f49ddb6476f9d2b21a3ed02f96fcc135 Closes-Bug: 1312813
This commit is contained in:
parent
e39a3f57e2
commit
31a77d1c76
@ -287,6 +287,7 @@ def lock(name, lock_file_prefix=None, external=False, lock_path=None):
|
||||
yield ext_lock
|
||||
else:
|
||||
yield int_lock
|
||||
LOG.debug('Released semaphore "%(lock)s"', {'lock': name})
|
||||
|
||||
|
||||
def synchronized(name, lock_file_prefix=None, external=False, lock_path=None):
|
||||
|
Loading…
x
Reference in New Issue
Block a user