Skip to content

更详细的调试日志 #453

Open
Open
@weakish

Description

@weakish

现在调试日志用的是 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(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    nextbreaking changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions