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

zljubisicmob at gmail.com zljubisicmob at gmail.com
Sat Apr 4 21:38:49 CEST 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