aliyun/log/logclient.py [5364:5375]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        params = {}
        headers = {"x-log-bodyrawsize": "0", "Content-Type": "application/json"}

        if hasattr(detail, "to_json"):
            detail = detail.to_json()
            body_str = six.b(json.dumps(detail))
        elif isinstance(detail, six.binary_type):
            body_str = detail
        elif isinstance(detail, six.text_type):
            body_str = detail.encode("utf8")
        else:
            body_str = six.b(json.dumps(detail))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



aliyun/log/logclient.py [5507:5518]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        params = {}
        headers = {"x-log-bodyrawsize": "0", "Content-Type": "application/json"}

        if hasattr(detail, "to_json"):
            detail = detail.to_json()
            body_str = six.b(json.dumps(detail))
        elif isinstance(detail, six.binary_type):
            body_str = detail
        elif isinstance(detail, six.text_type):
            body_str = detail.encode("utf8")
        else:
            body_str = six.b(json.dumps(detail))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



