反正有禁用grequests的日志记录到控制台吗?我的应用程序的请求部分返回错误:禁用控制台上的grequests错误日志
Timeout: (<requests.packages.urllib3.connectionpool.HTTPConnectionPool object at 0x10daa1a50>, 'Connection to 116.231.213.50 timed out. (connect timeout=5)')
<Greenlet at 0x10d92bf50: <bound method AsyncRequest.send of <grequests.AsyncRequest object at 0x10da97990>>(stream=False)> failed with Timeout
我发现this禁用请求的日志,但与grequests没有运气。
你确定它使用日志记录来输出这些消息吗? 'grequests'似乎没有做任何日志记录。 –
如果您收到“超时”或“代理错误”等错误,它会将其写入控制台。 – AliBZ
但是它使用'logging'来完成吗?你怎么知道它的确如此? –