Commit 4180fba4 authored by Jérome Perrin's avatar Jérome Perrin

Revert "slap lib: disable 'Unverified HTTPS request is being made' messages."

This reverts commit a8f83ef9 and the
other places where this pattern was copied.

If some non verified connection is being made, let's be honest and don't
hide it to user.
parent 53ad30a0
......@@ -49,7 +49,6 @@ import slapos.cli.complete
# silence messages like 'Starting connection' that are logged with INFO
urllib3_logger = logging.getLogger('requests.packages.urllib3')
urllib3_logger.setLevel(logging.WARNING)
urllib3.disable_warnings()
class SlapOSCommandManager(CommandManager):
......
......@@ -40,8 +40,6 @@ from .exception import ResourceNotReady, NotFoundError, \
AuthenticationError, ConnectionError
import requests
# silence messages like 'Unverified HTTPS request is being made'
requests.packages.urllib3.disable_warnings()
# silence messages like 'Starting connection' that are logged with INFO
urllib3_logger = logging.getLogger('requests.packages.urllib3')
urllib3_logger.setLevel(logging.WARNING)
......
......@@ -58,8 +58,6 @@ from .interface import slap as interface
import requests
# silence messages like 'Unverified HTTPS request is being made'
requests.packages.urllib3.disable_warnings()
# silence messages like 'Starting connection' that are logged with INFO
urllib3_logger = logging.getLogger('requests.packages.urllib3')
urllib3_logger.setLevel(logging.WARNING)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment