You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the code only ever globally turns warnings off, but can never turn them back on again.
I have a situation where I need to follow best-practices and only narrowly silence warnings for a single GET request, which generates spurious and expected warnings, but then expose warnings as normal for all other calls.
So it would be really great if disable_warnings=0 turned all of the warnings back on.
(Currently I'm working around this by just exposing our own custom keywords that adjust the urllib3 warnings and log level at the most narrow granularity possible, but I think it would be better to have this functionality in the library.)
The text was updated successfully, but these errors were encountered:
mentalisttraceur
changed the title
Make disable_warnings=0 to turn warnings back on.
Make disable_warnings=0 turn warnings back on.
Apr 5, 2019
mentalisttraceur
changed the title
Make disable_warnings=0 turn warnings back on.
Please make disable_warnings=0 turn warnings back on?
Apr 16, 2019
It looks like the code only ever globally turns warnings off, but can never turn them back on again.
I have a situation where I need to follow best-practices and only narrowly silence warnings for a single
GET
request, which generates spurious and expected warnings, but then expose warnings as normal for all other calls.So it would be really great if
disable_warnings=0
turned all of the warnings back on.(Currently I'm working around this by just exposing our own custom keywords that adjust the
urllib3
warnings and log level at the most narrow granularity possible, but I think it would be better to have this functionality in the library.)The text was updated successfully, but these errors were encountered: