Set the iso8601 log level to WARN

When use "--debug" parameter in other projects's CLI, it may display
useless iso8601 debug info, this is because  other client's CLI will
call keystoneclient to get token, and keystoneclient will display the
iso8601 debug info.

set the iso8601 log level to "WARN" to avoid this issue.

Change-Id: Id90c86f0e7c8e9ae47ca53667f469d111d6ae373
Closes-bug: #1324470
This commit is contained in:
liu-sheng
2014-05-29 17:58:19 +08:00
parent 77c8bf982f
commit 4435425c8d

View File

@@ -384,6 +384,8 @@ class OpenStackIdentityShell(object):
if args.debug:
logging_level = logging.DEBUG
iso_logger = logging.getLogger('iso8601')
iso_logger.setLevel('WARN')
else:
logging_level = logging.WARNING