Set iso8601 log level to WARNING

When debug logging is enabled, set the log level of iso8601 to WARNING
to effectively silence its logging.

Change-Id: I17d7e6d5776b2369a2f8c42fd88f6c6790ad1b80
Closes-bug: #1441639
This commit is contained in:
Jimmy McCrory 2015-07-19 11:01:47 -07:00
parent 7c96ed73a0
commit a80ac8523a

View File

@ -498,6 +498,7 @@ class OpenStackComputeShell(object):
# print debug messages
logging.basicConfig(level=logging.DEBUG,
format=streamformat)
logging.getLogger('iso8601').setLevel(logging.WARNING)
def _get_keystone_auth(self, session, auth_url, **kwargs):
auth_token = kwargs.pop('auth_token', None)