summaryrefslogtreecommitdiff
path: root/keystoneclient/shell.py
diff options
context:
space:
mode:
authorliu-sheng <liusheng@huawei.com>2014-05-29 17:58:19 +0800
committerliu-sheng <liusheng@huawei.com>2014-06-12 16:44:45 +0800
commit4435425c8d847869c19467af98a2c7a24e9a328c (patch)
tree6cded302c7ae0e2e0b8a532ad5c2de5a5c9dd083 /keystoneclient/shell.py
parent77c8bf982fec4a0d9e1686ee695e96123d32635e (diff)
downloadpython-keystoneclient-4435425c8d847869c19467af98a2c7a24e9a328c.tar.gz
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
Diffstat (limited to 'keystoneclient/shell.py')
-rw-r--r--keystoneclient/shell.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/keystoneclient/shell.py b/keystoneclient/shell.py
index 3aebadd..5caadeb 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