反正有禁用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'來完成嗎?你怎麼知道它的確如此? –