From 891a58f08189bb14396175b0e1d7e09eaa4b514f Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Mon, 22 Aug 2016 01:25:33 -0700 Subject: [PATCH] Change the lock trace message Changed 'traceback' to 'stack trace'. This makes debugging a little easier. Change-Id: I42a004ba3da73f8a3035bef039a8000b5a842a58 --- vmware_nsx/common/locking.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vmware_nsx/common/locking.py b/vmware_nsx/common/locking.py index b29848bf4f..c1f6eb3f9f 100644 --- a/vmware_nsx/common/locking.py +++ b/vmware_nsx/common/locking.py @@ -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