Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更详细的调试日志 #453

Open
weakish opened this issue Apr 8, 2020 · 1 comment
Open

更详细的调试日志 #453

weakish opened this issue Apr 8, 2020 · 1 comment
Labels
next breaking changes

Comments

@weakish
Copy link
Contributor

weakish commented Apr 8, 2020

现在调试日志用的是 requests (也就是 urllib3)的日志,只有 url 和 status code,没有 POST 请求的 body,也没有 http header。

顺便记录下 python 3 下如何开启完整日志:

import http.client
http.client.HTTPConnection.debuglevel=5

import logging
logging.basicConfig(level=logging.DEBUG)

import leancloud
# leancloud.init(...)
@weakish weakish added the next breaking changes label Apr 8, 2020
@DAnGioi
Copy link

DAnGioi commented Apr 9, 2020

但urllib3似乎是不是不怎么稳定,我运行着就出现socket.timeout: The read operation timed out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next breaking changes
Projects
None yet
Development

No branches or pull requests

2 participants