This commit is contained in:
Alan Hamlett 2015-10-23 00:41:46 -07:00
parent b483218249
commit 68e5d35b06

View file

@ -14,6 +14,7 @@ import os
import traceback import traceback
from .compat import u from .compat import u
from .packages.requests.packages import urllib3
try: try:
from collections import OrderedDict # pragma: nocover from collections import OrderedDict # pragma: nocover
except ImportError: # pragma: nocover except ImportError: # pragma: nocover
@ -83,6 +84,7 @@ def set_log_level(logger, args):
def setup_logging(args, version): def setup_logging(args, version):
urllib3.disable_warnings()
logger = logging.getLogger('WakaTime') logger = logging.getLogger('WakaTime')
for handler in logger.handlers: for handler in logger.handlers:
logger.removeHandler(handler) logger.removeHandler(handler)