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
This commit is contained in:
liu-sheng
2014-06-24 09:53:17 +08:00
parent 1bce6e437e
commit 85cb530088

View File

@@ -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