Add novaclient interactions to http_debug

While hopefully novaclient will be gone soon, it's here now.

We set up novaclient logging in our unit tests so that we can see what's
going on. Do the same in simple_logging at least until we've gotten rid
of novaclient.

Change-Id: I105af3acbe215fb8d0cdc3dd7e5670eb4379d668
This commit is contained in:
Monty Taylor 2017-05-25 10:21:23 -05:00
parent f6c74f25f0
commit e167039f58
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594

View File

@ -53,6 +53,11 @@ def simple_logging(debug=False, http_debug=False):
log = _log.setup_logging('keystoneauth')
log.addHandler(logging.StreamHandler())
log.setLevel(log_level)
# Enable HTTP level tracing of novaclient
logger = logging.getLogger('novaclient')
log.addHandler(logging.StreamHandler())
log.setLevel(log_level)
logger.propagate = False
# We only want extra shade HTTP tracing in http debug mode
log = _log.setup_logging('shade.http')
log.setLevel(log_level)