From 85cb5300889d17e779b2a300cf2ff4c9b8574f87 Mon Sep 17 00:00:00 2001 From: liu-sheng Date: Tue, 24 Jun 2014 09:53:17 +0800 Subject: [PATCH] Silences the output in CLI for connection info This change try to reduce the useless urllib3 connection info in CLI by set the log level of urllib3.connectionpool. Change-Id: I9d21d29ae0274133099dd05a14e5211d77ffe721 Closes-Bug: #1333485 --- neutronclient/shell.py | 1 + 1 file changed, 1 insertion(+) diff --git a/neutronclient/shell.py b/neutronclient/shell.py index 31e23193d..2bcb691ad 100644 --- a/neutronclient/shell.py +++ b/neutronclient/shell.py @@ -686,6 +686,7 @@ class NeutronShell(app.App): formatter = logging.Formatter(self.DEBUG_MESSAGE_FORMAT) else: formatter = logging.Formatter(self.CONSOLE_MESSAGE_FORMAT) + logging.getLogger('urllib3.connectionpool').setLevel(logging.WARNING) console.setFormatter(formatter) root_logger.addHandler(console) return