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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user