Change the lock trace message

Changed 'traceback' to 'stack trace'. This makes debugging a little
easier.

Change-Id: I42a004ba3da73f8a3035bef039a8000b5a842a58
This commit is contained in:
Gary Kotton 2016-08-22 01:25:33 -07:00
parent af8cd3f2ca
commit 891a58f081

View File

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