Turn down requests logging level

Looks like the default is INFO, we don't need to see that unless
--debug is specified.

Change-Id: Ieee5d4dc5102f11536ecc6330461f86101811f9e
This commit is contained in:
Dean Troyer 2013-03-09 00:20:16 -06:00
parent 0c252b615d
commit 13d88407d6

View File

@ -297,6 +297,13 @@ class OpenStackShell(App):
super(OpenStackShell, self).initialize_app(argv)
# Set requests logging to a useful level
requests_log = logging.getLogger("requests")
if self.options.debug:
requests_log.setLevel(logging.DEBUG)
else:
requests_log.setLevel(logging.WARNING)
# stash selected API versions for later
# TODO(dtroyer): how do extenstions add their version requirements?
self.api_version = {