Suppress warning insecure URL messages
Do not spam end users by insecure URL messages because it is quite valid case in testing process Change-Id: I8370290ec1db75eb6e1e01dcb56eeedba48267dd
This commit is contained in:
parent
37ffd64fb1
commit
92f63cab27
@ -26,6 +26,7 @@ import jsonschema
|
|||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_utils import encodeutils
|
from oslo_utils import encodeutils
|
||||||
import prettytable
|
import prettytable
|
||||||
|
from requests.packages import urllib3
|
||||||
import six
|
import six
|
||||||
import sqlalchemy.exc
|
import sqlalchemy.exc
|
||||||
|
|
||||||
@ -491,6 +492,12 @@ def run(argv, categories):
|
|||||||
urllib3_log = logging.getLogger("urllib3").logger
|
urllib3_log = logging.getLogger("urllib3").logger
|
||||||
urllib3_log.setLevel(logging.WARNING)
|
urllib3_log.setLevel(logging.WARNING)
|
||||||
|
|
||||||
|
LOG.debug("urllib3 insecure warnings are hidden.")
|
||||||
|
urllib3.disable_warnings(
|
||||||
|
urllib3.exceptions.InsecurePlatformWarning)
|
||||||
|
urllib3.disable_warnings(urllib3.exceptions.SNIMissingWarning)
|
||||||
|
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
||||||
|
|
||||||
# NOTE(wtakase): This is for suppressing boto error logging.
|
# NOTE(wtakase): This is for suppressing boto error logging.
|
||||||
LOG.debug("ERROR log from boto module is hide.")
|
LOG.debug("ERROR log from boto module is hide.")
|
||||||
boto_log = logging.getLogger("boto").logger
|
boto_log = logging.getLogger("boto").logger
|
||||||
|
Loading…
x
Reference in New Issue
Block a user