http-app: prevent httplib3 logs to spawn our rhodecode logs.

- it often happens that there are odd logs, and it confuses people looking at those.
This commit is contained in:
Marcin Kuzminski 2017-03-15 17:30:14 +01:00
parent 5c1b93fc48
commit 58fe679096

View file

@ -57,6 +57,10 @@ session = requests.Session()
# Requests speedup, avoid reading .netrc and similar
session.trust_env = False
# prevent urllib3 spawning our logs.
logging.getLogger("requests.packages.urllib3.connectionpool").setLevel(
logging.WARNING)
class VcsHttpProxy(object):
"""