How to set request module logging to certain level (python 3.4.2)

zljubisicmob at gmail.com zljubisicmob at gmail.com
Sat Apr 4 15:38:49 EDT 2015


Looks like I have found (with your help) a solution.
Instead of:

logging.getLogger('requests.packages.urllib3').setLevel(logging.ERROR) 

the line should look like:

logging.getLogger('urllib3').setLevel(logging.ERROR) 

After changing the line, everything is OK.

Thank you all.

Regards.



More information about the Python-list mailing list