From 0e057acf0cce634f0ab4e472184d2af2d46689fd Mon Sep 17 00:00:00 2001 From: Linda Wang Date: Wed, 30 Aug 2017 09:00:27 +0000 Subject: Disable urllib3 warnings 1. When running in compass OSA, lots of SubjectAltNameWarnings are shown in console, so just disable the warnings here. See https://github.com/shazow/urllib3/issues/497 for details 2. Redirect warnings issued by the warnings module to the logging system via logging.captureWarnings(True) 3. But urllib3 warning is still there for two cmds about rally/tempest. Change-Id: Ic22cf8e2babc10c9d55a7ed46b841312a4e430a7 Signed-off-by: Linda Wang --- functest/cli/cli_base.py | 1 + 1 file changed, 1 insertion(+) (limited to 'functest/cli') diff --git a/functest/cli/cli_base.py b/functest/cli/cli_base.py index 54b3e72b2..507179b17 100644 --- a/functest/cli/cli_base.py +++ b/functest/cli/cli_base.py @@ -25,6 +25,7 @@ CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) def cli(): logging.config.fileConfig(pkg_resources.resource_filename( 'functest', 'ci/logging.ini')) + logging.captureWarnings(True) _env = CliEnv() -- cgit 1.2.3-korg