Change the lock trace message
Changed 'traceback' to 'stack trace'. This makes debugging a little easier. Change-Id: I42a004ba3da73f8a3035bef039a8000b5a842a58
This commit is contained in:
parent
af8cd3f2ca
commit
891a58f081
@ -36,14 +36,14 @@ class LockManager(object):
|
||||
def get_lock(name, **kwargs):
|
||||
if cfg.CONF.locking_coordinator_url:
|
||||
lck = LockManager._get_lock_distributed(name)
|
||||
LOG.debug('Lock %s taken with traceback %s', name,
|
||||
LOG.debug('Lock %s taken with stack trace %s', name,
|
||||
traceback.extract_stack())
|
||||
return lck
|
||||
else:
|
||||
# Ensure that external=True
|
||||
kwargs['external'] = True
|
||||
lck = LockManager._get_lock_local(name, **kwargs)
|
||||
LOG.debug('Lock %s taken with traceback %s', name,
|
||||
LOG.debug('Lock %s taken with stack trace %s', name,
|
||||
traceback.extract_stack())
|
||||
return lck
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user