gpt4 book ai didi

python - 记录: How to filter INFO messages from request library?

转载 作者:太空宇宙 更新时间:2023-11-03 17:28:51 26 4
gpt4 key购买 nike

如何从请求库中过滤消息,如下所示:

requests.packages.urllib3.connectionpool: INFO     [9706] Starting new HTTPS connection (1): foohost

最佳答案

logging.getLogger('requests').setLevel(logging.WARN)    

关于python - 记录: How to filter INFO messages from request library?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32199528/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com