Requests/urllib3 Retry warning when downloading image
<p>I'm downloading some images sequentially using the following code, but am getting lots of <code>WARNING: Retrying</code> messages. It's worth noting the image url which causes this vary's every time and sometimes never happens.</p>

<pre><code>session = requests.Session()
session.keep_alive = False
adapter = requests.adapters.HTTPAdapter(pool_connections=100, pool_maxsize=100, max_retries=3)
session.mount("http://", adapter)
session.mount("https://", adapter)

response = session.get(image_url, headers=headers, allow_redirects=True, timeout=20)
</code></pre>

<p>And this causes the warning</p>

<pre><code>2016-06-28 07:16:47 [requests.packages.urllib3.connectionpool] WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ReadTimeoutError("HTTPConnectionPool(host='s-media-cache-ak0.pinimg.com', port=80): Read timed out. (read timeout=20)",)': /564x/4d/75/78/4d7578cf80d146b9d2b597f8678c7b31.jpg
</code></pre>

<p>How can I fix/suppress these? It does not make sense to have lots of retry warnings in my logs. I've checkout the requests source code but I don't want to be disabling all warnings:</p>

<pre><code>log.warning("Retrying (%r) after connection "
            "broken by '%r': %s", retries, err, url)
</code></pre>