From 68e5d35b064c8a14a907c8610829d3d2c5f2c75a Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Fri, 23 Oct 2015 00:41:46 -0700 Subject: [PATCH] disable urllib3 SSL warning from every request https://urllib3.readthedocs.org/en/latest/security.html#disabling-warnings --- wakatime/logger.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wakatime/logger.py b/wakatime/logger.py index f6bd947..13d9454 100644 --- a/wakatime/logger.py +++ b/wakatime/logger.py @@ -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)