disable urllib3 SSL warning from every request https://urllib3.readthedocs.org/en/latest/security.html#disabling-warnings
This commit is contained in:
parent
b483218249
commit
68e5d35b06
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,7 @@ import os
|
|||
import traceback
|
||||
|
||||
from .compat import u
|
||||
from .packages.requests.packages import urllib3
|
||||
try:
|
||||
from collections import OrderedDict # pragma: nocover
|
||||
except ImportError: # pragma: nocover
|
||||
|
@ -83,6 +84,7 @@ def set_log_level(logger, args):
|
|||
|
||||
|
||||
def setup_logging(args, version):
|
||||
urllib3.disable_warnings()
|
||||
logger = logging.getLogger('WakaTime')
|
||||
for handler in logger.handlers:
|
||||
logger.removeHandler(handler)
|
||||
|
|
Loading…
Reference in a new issue