summaryrefslogtreecommitdiff
path: root/openstackclient/shell.py
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2015-04-28 18:15:20 -0500
committerDean Troyer <dtroyer@gmail.com>2015-04-28 18:15:24 -0500
commitcf52e722c0c37ce2f69b9ca0684890033c8c06c6 (patch)
treeaaf078f1734a385cc4051045c8703ba716da6844 /openstackclient/shell.py
parent48b52a0d40013d65e85ebeadcfb80a06c431b6db (diff)
downloadpython-openstackclient-cf52e722c0c37ce2f69b9ca0684890033c8c06c6.tar.gz
Minor logging/debug cleanups
This removed the rarely useful cliff command list from the debug output. Change-Id: I48f22086733acf90e79a6ddac8712734ee2d0b60
Diffstat (limited to 'openstackclient/shell.py')
-rw-r--r--openstackclient/shell.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/openstackclient/shell.py b/openstackclient/shell.py
index 90a6f32b..5e291021 100644
--- a/openstackclient/shell.py
+++ b/openstackclient/shell.py
@@ -139,12 +139,11 @@ class OpenStackShell(app.App):
# --debug forces traceback
self.dump_stack_trace = True
requests_log.setLevel(logging.DEBUG)
- cliff_log.setLevel(logging.DEBUG)
else:
self.dump_stack_trace = False
requests_log.setLevel(logging.ERROR)
- cliff_log.setLevel(logging.ERROR)
+ cliff_log.setLevel(logging.ERROR)
stevedore_log.setLevel(logging.ERROR)
iso8601_log.setLevel(logging.ERROR)
@@ -325,10 +324,7 @@ class OpenStackShell(app.App):
return
def clean_up(self, cmd, result, err):
- self.log.debug('clean_up %s', cmd.__class__.__name__)
-
- if err:
- self.log.debug('got an error: %s', err)
+ self.log.debug('clean_up %s: %s', cmd.__class__.__name__, err or '')
# Process collected timing data
if self.options.timing: