Browse Source

Shorten stacktrace log on locks

Change-Id: I9d123014dd275ce4aaf7d888d02d20cf233078b0
changes/63/745463/1
asarfaty 1 year ago
committed by Adit Sarfaty
parent
commit
f054e1b2ae
  1. 4
      vmware_nsx/common/locking.py

4
vmware_nsx/common/locking.py

@ -37,14 +37,14 @@ class LockManager(object):
if cfg.CONF.locking_coordinator_url:
lck = LockManager._get_lock_distributed(name)
LOG.debug('Lock %s taken with stack trace %s', name,
traceback.extract_stack())
traceback.extract_stack(limit=5))
return lck
else:
# Ensure that external=True
kwargs['external'] = True
lck = LockManager._get_lock_local(name, **kwargs)
LOG.debug('Lock %s taken with stack trace %s', name,
traceback.extract_stack())
traceback.extract_stack(limit=5))
return lck
@staticmethod

Loading…
Cancel
Save