blob: e9810c5d7844dc25f17512ae1e5baa7a6d028bc0 [file] [log] [blame]
Chris Austenb29d2e82016-06-07 12:25:35 -05001#!/usr/bin/python
2import logging
3import warnings
4import httplib
5
6warnings.filterwarnings("ignore")
7
8# Hijack the HTTP lib logger message and Log only once
9requests_log = logging.getLogger("requests.packages.urllib3")
10requests_log.setLevel(logging.CRITICAL)
11requests_log.propagate = False
12
Gunnar Mills096cd562018-03-26 10:19:12 -050013
Chris Austenb29d2e82016-06-07 12:25:35 -050014class disable_warning_urllib():
15 def do_nothing():
16 return