From 4435425c8d847869c19467af98a2c7a24e9a328c Mon Sep 17 00:00:00 2001 From: liu-sheng Date: Thu, 29 May 2014 17:58:19 +0800 Subject: [PATCH] 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 --- keystoneclient/shell.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keystoneclient/shell.py b/keystoneclient/shell.py index 3aebaddb0..5caadeb45 100644 --- a/keystoneclient/shell.py +++ b/keystoneclient/shell.py @@ -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