summaryrefslogtreecommitdiff
path: root/openstackclient/common/module.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-09-11 02:43:53 +0000
committerGerrit Code Review <review@openstack.org>2015-09-11 02:43:54 +0000
commit0daa0969392dce50266d8dcac31a68d2ba02602f (patch)
treeb064e34392225d0ab144765784f4f171b8760429 /openstackclient/common/module.py
parentfa4b11a86f05cbf3b542a795267490a65d477b0e (diff)
parente3c46ece4a496584a54b9d39b55921990db4a7b3 (diff)
downloadpython-openstackclient-0daa0969392dce50266d8dcac31a68d2ba02602f.tar.gz
Merge "Use a common decorator to log 'take_action' activation"
Diffstat (limited to 'openstackclient/common/module.py')
-rw-r--r--openstackclient/common/module.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/openstackclient/common/module.py b/openstackclient/common/module.py
index 356cdca3..f0ed23b2 100644
--- a/openstackclient/common/module.py
+++ b/openstackclient/common/module.py
@@ -22,6 +22,8 @@ import sys
from cliff import lister
from cliff import show
+from openstackclient.common import utils
+
class ListCommand(lister.Lister):
"""List recognized commands by group"""
@@ -29,8 +31,8 @@ class ListCommand(lister.Lister):
auth_required = False
log = logging.getLogger(__name__ + '.ListCommand')
+ @utils.log_method(log)
def take_action(self, parsed_args):
- self.log.debug('take_action(%s)', parsed_args)
cm = self.app.command_manager
groups = cm.get_command_groups()
@@ -54,8 +56,8 @@ class ListModule(show.ShowOne):
)
return parser
+ @utils.log_method(log)
def take_action(self, parsed_args):
- self.log.debug('take_action(%s)', parsed_args)
data = {}
# Get module versions