blob: 1082f244867d1a0a27b1d5745ffb9ec56b607c7d [file] [log] [blame]
#!/usr/bin/python
import logging
import warnings
import httplib
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