blob: 8527b6dc35511cd2f6bc5b10e1433cf0a35db312 [file] [log] [blame]
#!/usr/bin/env python3
import logging
import warnings
try:
import httplib
except ImportError:
import http.client
warnings.filterwarnings("ignore")
# Hijack the HTTP lib logger message and Log only once
requests_log = logging.getLogger("requests.packages.urllib3")
requests_log.setLevel(logging.CRITICAL)
requests_log.propagate = False
class disable_warning_urllib:
def do_nothing():
return